mailPooler

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamEmpty liberr.CodeError = iota + liberr.MinPkgMailPooler
	ErrorMailPooler
	ErrorMailPoolerContext
)

Variables

This section is empty.

Functions

This section is empty.

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