mailPooler

package
v1.8.10 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamsEmpty errors.CodeError = iota + errors.MinPkgMailPooler
	ErrorMailPooler
	ErrorMailPoolerContext
)

Variables

This section is empty.

Functions

func IsCodeError

func IsCodeError() bool

Types

type Config

type Config struct {
	Max  int           `json:"max" yaml:"max" toml:"max" mapstructure:"max"`
	Wait time.Duration `json:"wait" yaml:"wait" toml:"wait" mapstructure:"wait"`
	// contains filtered or unexported fields
}

func (*Config) SetFuncCaller

func (c *Config) SetFuncCaller(fct FuncCaller)

type Counter

type Counter interface {
	Pool(ctx context.Context) liberr.Error
	Reset() liberr.Error
	Clone() Counter
}

type FuncCaller

type FuncCaller func() liberr.Error

type Pooler

type Pooler interface {
	Reset() liberr.Error
	NewPooler() Pooler

	libsmtp.SMTP
}

func New

func New(cfg *Config, cli libsmtp.SMTP) Pooler

Jump to

Keyboard shortcuts

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