client

package
v1.27.7 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrNotEnabled occurs when no configuration is provided
	ErrNotEnabled = errors.New("mailer not enabled")
)

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App of package

func New

func New(config Config, prometheusRegister prometheus.Registerer) (App, error)

New creates new App from Config

func (App) Close added in v1.11.0

func (a App) Close()

Close client

func (App) Enabled

func (a App) Enabled() bool

Enabled checks if requirements are met

func (App) Send added in v1.8.0

func (a App) Send(ctx context.Context, mailRequest model.MailRequest) error

Send sends emails with Mailer for defined parameters

func (App) String added in v1.16.6

func (a App) String() string

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config of package

func Flags

func Flags(fs *flag.FlagSet, prefix string) Config

Flags adds flags for configuring package

Jump to

Keyboard shortcuts

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