Documentation ¶
Index ¶
- func NewKafka(tag string, tracing tracing.Tracing, lo logger.Logger, ...) database.Kafka
- type Consumer
- type Kafka
- type MsgSend
- type Producer
- type Stores
- func (c *Stores) Delete(id string)
- func (c *Stores) Get(id string) (cb database.ConsumerCallback, ok bool)
- func (c *Stores) LoadClient(id string) (client *Kafka, ok bool)
- func (c *Stores) LoadClientByTag(ta string) (client *Kafka, ok bool)
- func (c *Stores) Put(id string, cb database.ConsumerCallback)
- func (c *Stores) StoreClient(client *Kafka)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Consumer ¶
func NewConsumer ¶
func NewConsumer(tracing tracing.Tracing, lg logger.Logger, config database.KafkaProviderConfig, options database.KafkaOptions, callback database.ConsumerCallback, store *Stores) *Consumer
type Kafka ¶
func (*Kafka) Consumer ¶
func (c *Kafka) Consumer(options database.KafkaOptions, callback database.ConsumerCallback)
func (*Kafka) Producer ¶
func (c *Kafka) Producer(isReady database.ProducerIsReady)
type Producer ¶
func NewProducer ¶
func (*Producer) SendingData ¶
func (c *Producer) SendingData(id string, options database.KafkaOptions, body interface{}, headers map[string]interface{}, cb database.ConsumerCallback)
Click to show internal directories.
Click to hide internal directories.