Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { // Handle is a handler that will be called by the SMTP server with the given SMTP state. Handle(state *smtp.State) error }
Handler is an interface for SMTP handlers.
type HandlerMachanism ¶
type HandlerMachanism struct {
Handlers []Handler
}
HandlerMechanism contains a list of all handlers and executes the chain it is meant to be passed to the MTA as mta.Handler interface
func (*HandlerMachanism) AddHandler ¶
func (h *HandlerMachanism) AddHandler(handler ...Handler)
AddHandler adds a handler to the mechanism.
Click to show internal directories.
Click to hide internal directories.