client

package
v1.32.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 13 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 Config

type Config struct {
	URL      string
	Name     string
	Password string
}

func Flags

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

type Service added in v1.32.4

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

func New

func New(config Config, meterProvider metric.MeterProvider, tracerProvider trace.TracerProvider) (Service, error)

func (Service) Close added in v1.32.4

func (a Service) Close()

func (Service) Enabled added in v1.32.4

func (a Service) Enabled() bool

func (Service) Send added in v1.32.4

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

Send sends emails with Mailer for defined parameters

func (Service) String added in v1.32.4

func (a Service) String() string

Jump to

Keyboard shortcuts

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