Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConsumerConfig ¶
func DefaultConsumerConfig() *consumergroup.Config
func DefaultProducerConfig ¶
Types ¶
type Consumer ¶
type Consumer interface { StartListening(messageHandler func(message FTMessage) error) Shutdown() ConnectivityCheck() error }
func NewConsumer ¶
type ConsumerGrouper ¶
type ConsumerGrouper interface { Errors() <-chan error Messages() <-chan *sarama.ConsumerMessage CommitUpto(message *sarama.ConsumerMessage) error Close() error Closed() bool }
type MessageConsumer ¶
type MessageConsumer struct {
// contains filtered or unexported fields
}
func (*MessageConsumer) ConnectivityCheck ¶
func (c *MessageConsumer) ConnectivityCheck() error
func (*MessageConsumer) Shutdown ¶
func (c *MessageConsumer) Shutdown()
func (*MessageConsumer) StartListening ¶
func (c *MessageConsumer) StartListening(messageHandler func(message FTMessage) error)
type MessageProducer ¶
type MessageProducer struct {
// contains filtered or unexported fields
}
func (*MessageProducer) ConnectivityCheck ¶
func (p *MessageProducer) ConnectivityCheck() error
func (*MessageProducer) SendMessage ¶
func (p *MessageProducer) SendMessage(message FTMessage) error
func (*MessageProducer) Shutdown ¶
func (p *MessageProducer) Shutdown()
Click to show internal directories.
Click to hide internal directories.