Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomBytes ¶
RandomBytes provides N secure randomized bytes. Stops the program on failure.
Types ¶
type Distributor ¶
type Distributor interface { // Progress(ProgressFunction) SetLogger(loggers.Logger) // When writing your own distributor, do not forget to set m.Current for each mail item! Send(l *loaders.Message, r renderers.Renderer, p providers.Provider, test bool) error Close() error }
Distributor manages queues and workers to deliver mail.
type LockingSynchronousBufferingDistributor ¶
type LockingSynchronousBufferingDistributor struct {
// contains filtered or unexported fields
}
LockingSynchronousBufferingDistributor sends mail from one thread using memory buffer and prevents double deliveries using a hash lock file.
func (*LockingSynchronousBufferingDistributor) Close ¶
func (d *LockingSynchronousBufferingDistributor) Close() error
Close wraps up operations and closes handle.
func (*LockingSynchronousBufferingDistributor) Send ¶
func (d *LockingSynchronousBufferingDistributor) Send( m *loaders.Message, r renderers.Renderer, p providers.Provider, test bool) error
Send delivers mail to all potential recepients.
func (*LockingSynchronousBufferingDistributor) SetLogger ¶
func (d *LockingSynchronousBufferingDistributor) SetLogger(l loggers.Logger)
Click to show internal directories.
Click to hide internal directories.