Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonOpts ¶
func CommonOpts(cfg CommonConfig) ([]kgo.Opt, error)
Types ¶
type CommonConfig ¶
type ConsumeManager ¶
type ConsumeManager struct {
CallBack map[string]Handler
// contains filtered or unexported fields
}
func NewConsumeManager ¶
func NewConsumeManager(cfg ConsumerConfig, callback map[string]Handler) (*ConsumeManager, error)
func (*ConsumeManager) CreateTopics ¶
func (s *ConsumeManager) CreateTopics(ctx context.Context, topics []NewTopic) error
type ConsumerConfig ¶
type Handler ¶
type Handler interface {
Handle(record kgo.FetchTopicPartition) error
}
type ProducerClient ¶
type ProducerClient struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer(cfg ProducerConfig) (*ProducerClient, error)
type ProducerConfig ¶
type ProducerConfig struct {
CommonConfig `json:"CommonConfig"`
Topic []string
Compression string
RetryMax int
AllowAutoTopicCreation bool
}
Click to show internal directories.
Click to hide internal directories.