smtp

package
Version: v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr        string `json:"addr"`
	ReadTimeout int    `json:"read_timeout"`
}

Config stores configuration data for the SMTP server.

type Server

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

Server awaits incoming connections and delivers them to the mail queue.

func New

func New(c *Config, q *queue.Queue) (*Server, error)

New creates a new SMTP server with the specified configuration.

func (*Server) Close

func (s *Server) Close()

Close shuts down the server.

Jump to

Keyboard shortcuts

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