apache / apache/rocketmq-client-go

Enrich and optimize admin api

Open
#800 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
1.4k
Forks
445
PR merge metrics
No merged PRs in 30d

Description

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

Currently, only supports two apis:

``` go
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
}
```

2. 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.