mailPooler

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 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) error
	Reset() error
	Clone() Counter
}

type FuncCaller

type FuncCaller func() error

type Pooler

type Pooler interface {
	Reset() 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