Documentation ¶
Index ¶
- type Config
- type Consumer
- func (consumer *Consumer) Cleanup(sarama.ConsumerGroupSession) error
- func (consumer *Consumer) Consume(topics string, messageHandler func(msg *sarama.ConsumerMessage) error) error
- func (consumer *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (consumer *Consumer) Setup(sarama.ConsumerGroupSession) error
- func (c *Consumer) ToggleConsumptionFlow()
- type EventConsumers
- type EventProducer
- type Producer
- type UserRegistrationEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { EventConsumers EventConsumers // contains filtered or unexported fields }
func NewConsumer ¶
func (*Consumer) ConsumeClaim ¶
func (consumer *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
func (*Consumer) ToggleConsumptionFlow ¶
func (c *Consumer) ToggleConsumptionFlow()
type EventConsumers ¶
type EventConsumers map[string]func(msg *sarama.ConsumerMessage) error
type EventProducer ¶
type EventProducer interface { BroadCast(count int, eventName string, payload []byte) error Clear() }
func NewProducer ¶
func NewProducer(c *Config) (EventProducer, error)
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
type UserRegistrationEvent ¶
type UserRegistrationEvent struct { }
Click to show internal directories.
Click to hide internal directories.