Documentation
¶
Index ¶
- Constants
- type Brokers
- type Config
- type DefaultKafkaClient
- func (kc DefaultKafkaClient) CreatePartitions(ctx context.Context, uri string, topic Topic, numberOfPartitions int64) error
- func (kc DefaultKafkaClient) CreateTopic(uri string, topic Topic) error
- func (kc DefaultKafkaClient) GetTopic(uri string, name string) (*Topic, error)
- func (kc DefaultKafkaClient) UpdateTopicConfiguration(ctx context.Context, uri string, topic Topic) error
- type KafkaClient
- type Topic
Constants ¶
View Source
const (
DefaultKafkaClientTimeout = 4 * time.Minute
)
View Source
const (
TCP = "tcp"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Brokers ¶
Holds BrokerIds as keys, and number of assignments for this Broker (currently the partitions that the Broker is a leader for)
type DefaultKafkaClient ¶
type DefaultKafkaClient struct{}
func NewDefaultKafkaClient ¶
func NewDefaultKafkaClient() DefaultKafkaClient
func (DefaultKafkaClient) CreatePartitions ¶
func (DefaultKafkaClient) CreateTopic ¶
func (kc DefaultKafkaClient) CreateTopic(uri string, topic Topic) error
func (DefaultKafkaClient) GetTopic ¶
func (kc DefaultKafkaClient) GetTopic(uri string, name string) (*Topic, error)
func (DefaultKafkaClient) UpdateTopicConfiguration ¶
type KafkaClient ¶
Click to show internal directories.
Click to hide internal directories.