Documentation ¶
Index ¶
- type KafkaLibrary
- func (kafka *KafkaLibrary) GetStateFull() *StateFullFormat
- func (kafka *KafkaLibrary) InitConsumer(group string) (sarama.ConsumerGroup, error)
- func (kafka *KafkaLibrary) InitNewConsumer() (sarama.Consumer, error)
- func (kafka *KafkaLibrary) SendEvent(topic string, payload *StateFullFormat) (*StateFullFormat, int64, error)
- type KafkaLibraryInterface
- type StateFullFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaLibrary ¶
type KafkaLibrary struct{}
KafkaLibrary ...
func (*KafkaLibrary) GetStateFull ¶
func (kafka *KafkaLibrary) GetStateFull() *StateFullFormat
GetStateFull ...
func (*KafkaLibrary) InitConsumer ¶
func (kafka *KafkaLibrary) InitConsumer(group string) (sarama.ConsumerGroup, error)
InitConsumer ...
func (*KafkaLibrary) InitNewConsumer ¶
func (kafka *KafkaLibrary) InitNewConsumer() (sarama.Consumer, error)
InitNewConsumer ...
func (*KafkaLibrary) SendEvent ¶
func (kafka *KafkaLibrary) SendEvent(topic string, payload *StateFullFormat) (*StateFullFormat, int64, error)
SendEvent ...
type KafkaLibraryInterface ¶
type KafkaLibraryInterface interface { GetStateFull() *StateFullFormat SendEvent(topic string, payload *StateFullFormat) (*StateFullFormat, int64, error) InitConsumer(group string) (sarama.ConsumerGroup, error) InitNewConsumer() (sarama.Consumer, error) }
KafkaLibraryInterface ...
Click to show internal directories.
Click to hide internal directories.