Skip to content

Enrich and optimize admin api #800

@gorexlv

Description

@gorexlv
  1. Provides more admin APIs, such as createTopicInCluster, createSubscriptionGroup, etc.

Currently, only supports two apis:

type Admin interface {
	CreateTopic(ctx context.Context, opts ...OptionCreate) error
	DeleteTopic(ctx context.Context, opts ...OptionDelete) error
	//TODO
	//TopicList(ctx context.Context, mq *primitive.MessageQueue) (*remote.RemotingCommand, error)
	//GetBrokerClusterInfo(ctx context.Context) (*remote.RemotingCommand, error)
	Close() error
}
  1. Admin API uses Option Builder Pattern, this will result in many Option Helper functions with the potential for naming conflicts. With more APIs, it becomes harder to maintain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions