Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSaramaConfig ¶
func GetSaramaConfig(cfg *config.Configuration) *sarama.Config
Types ¶
type EventPublisher ¶
type EventPublisher struct {
// contains filtered or unexported fields
}
func NewEventPublisher ¶
func NewEventPublisher(producer *Producer, cfg *config.Configuration, logger *logger.Logger) *EventPublisher
type MessageConsumer ¶
type MessageConsumer interface {
Subscribe(topic string) (<-chan *message.Message, error)
Close() error
}
func NewConsumer ¶
func NewConsumer(cfg *config.Configuration) (MessageConsumer, error)
type Producer ¶
func NewProducer ¶
func NewProducer(cfg *config.Configuration) (*Producer, error)
Click to show internal directories.
Click to hide internal directories.