submission

package
v0.0.0-...-aff46f4 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: GPL-3.0, GPL-3.0-or-later Imports: 7 Imported by: 0

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
	Auth      auth.Authenticator
	TLSConfig *tls.Config
	Domain    string
}

Config holds submission server configuration details

type Server

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

Server is a submission server.

func New

func New(cfg Config) Server

New returns a new submission server

func (*Server) Run

func (s *Server) Run() error

Run starts the server and returns an error if start up fails.

func (*Server) Shutdown

func (s *Server) Shutdown(error)

Shutdown gracefully stops the submission server.

Jump to

Keyboard shortcuts

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