Documentation ¶
Index ¶
- func Tls(c *config.Bootstrap) *tls.Config
- type K
- func (k *K) CreateTopic(topic string, partition int, replication int, serverAddr string)
- func (k *K) DeleteGroup(groupId string, serverAddr string)
- func (k *K) DeleteTopic(topic string, serverAddr string)
- func (k *K) ListConsumerGroups(serverAddr string)
- func (k *K) ListTopics(serverAddr string)
- func (k *K) Reader(topic string, groupId string, serverAddr string) *kafka.Reader
- func (k *K) Writer(topic string, serverAddr string) *kafka.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type K ¶
type K struct {
// contains filtered or unexported fields
}
func (*K) CreateTopic ¶
CreateTopic 创建 topic
func (*K) DeleteGroup ¶
DeleteGroup 删除 consumer group
func (*K) DeleteTopic ¶
DeleteTopic 删除 topic
func (*K) ListConsumerGroups ¶
func (*K) ListTopics ¶
Click to show internal directories.
Click to hide internal directories.