Skip to content

Enrich and optimize admin api #800

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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