msgpublisher

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL