Documentation ¶
Overview ¶
Package msgpublisher publishes outgoing SMS/Email messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(r auth.MessageRepository, options ...ConfigOption) auth.MessagingService
NewService returns a new implementation of auth.MessagingService.
Types ¶
type ConfigOption ¶
type ConfigOption func(*service)
ConfigOption configures the service.
func WithExpiry ¶
func WithExpiry(t time.Duration) ConfigOption
WithExpiry sets an expiry time for a message to complete sending.
func WithLogger ¶
func WithLogger(l log.Logger) ConfigOption
WithLogger configures the service with a logger.
Click to show internal directories.
Click to hide internal directories.