Documentation
¶
Overview ¶
Package msgconsumer reads SMS/Email messages from Kafka.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigOption ¶
type ConfigOption func(*service) error
ConfigOption configures the service.
func WithLogger ¶
func WithLogger(l log.Logger) ConfigOption
WithLogger configures the service with a logger.
func WithWorkers ¶
func WithWorkers(w int) ConfigOption
WithWorkers determines the total number of workers to process a message queue.
type Consumer ¶
Consumer reads a message stream from Kafka.
func NewService ¶
func NewService(ctx context.Context, r auth.MessageRepository, smsLib SMSer, emailLib Emailer, options ...ConfigOption) (Consumer, error)
NewService returns a new Consumer
Click to show internal directories.
Click to hide internal directories.