client

package
v1.33.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 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 (s Service) Close()

func (Service) Enabled added in v1.32.4

func (s Service) Enabled() bool

func (Service) Send added in v1.32.4

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

func (Service) String added in v1.32.4

func (s Service) String() string

Jump to

Keyboard shortcuts

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