spool

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Spool is used to queue messages to be delivered to users other than the destination email address (e.g. send copy to, alias, notifications it), this is a role of MTA such as Postfix

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WorkerPath

func WorkerPath(basePath string, workerId int) string

Types

type Spool

type Spool struct {
	// contains filtered or unexported fields
}

func New

func New(workersCount int, basePath string, fmode os.FileMode) *Spool

New manager of the directory pool workers @workersCount how many workers yow want @basePath base path for spool directory

func (*Spool) AbsolutePaths

func (this *Spool) AbsolutePaths() []string

AbsolutePaths directory paths to all workers

func (*Spool) GenFilename

func (this *Spool) GenFilename(hostname string) string

GenFilename returns the secure folder name

func (*Spool) WorkersCount

func (this *Spool) WorkersCount() int

Jump to

Keyboard shortcuts

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