Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerGroup ¶
func GetConsumer ¶
func GetConsumer(cfg ConsumerGroupConfig) *ConsumerGroup
func (*ConsumerGroup) RegisterHandleAndConsumer ¶
func (cg *ConsumerGroup) RegisterHandleAndConsumer(handler msgConsumer)
type ConsumerGroupConfig ¶
type ConsumerGroupConfig struct { Brokers []string Topic string Group string Offset string `json:",options=first|last,default=last"` Consumers int `json:",default=8"` User string `json:",optional"` Passwd string `json:",optional"` }
func (ConsumerGroupConfig) GetOffset ¶
func (c ConsumerGroupConfig) GetOffset() kafka.ConfigValue
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func MustNewProducer ¶
func MustNewProducer(config ProducerConfig) *Producer
Click to show internal directories.
Click to hide internal directories.