Documentation ¶
Overview ¶
Package msgconsumer reads and sends SMS/Email messages from a repository.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigOption ¶
type ConfigOption func(*service)
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 a repository.
func NewService ¶
func NewService(r auth.MessageRepository, smsLib auth.SMSer, emailLib auth.Emailer, options ...ConfigOption) Consumer
NewService returns a new Consumer
Click to show internal directories.
Click to hide internal directories.