Documentation ¶
Index ¶
- func LoadMessage(src *kafka.Message) (*utils.Message, error)
- type KafkaConsumerConfig
- type KafkaCredConfig
- type KafkaProducerConfig
- type Message
- type Poller
- type Producer
- func (k *Producer) Close(ctx context.Context) error
- func (k *Producer) HealthCheck(ctx context.Context) error
- func (k *Producer) Name(ctx context.Context) string
- func (k *Producer) ProduceMessage(ctx context.Context, key string, message *utils.Message, ...) (err error)
- func (k *Producer) ProduceMessageWithTopic(ctx context.Context, topic, key string, message *utils.Message, ...) (err error)
- func (k *Producer) ProduceToTopic(ctx context.Context, topic, key string, message []byte, ...) (err error)
- func (k *Producer) Shutdown(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadMessage ¶
Types ¶
type KafkaConsumerConfig ¶
type KafkaCredConfig ¶
type KafkaProducerConfig ¶
type Message ¶
type Message struct { *kafka.Message // contains filtered or unexported fields }
func (*Message) GetHeaders ¶
type Poller ¶
type Producer ¶
func NewProducer ¶
func NewProducer(ctx context.Context, logger log.Log, config *KafkaProducerConfig, tr api.ProduceTracer) (*Producer, error)
func (*Producer) ProduceMessage ¶
func (*Producer) ProduceMessageWithTopic ¶
func (*Producer) ProduceToTopic ¶
Click to show internal directories.
Click to hide internal directories.