sockmap

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server added in v0.13.0

type Server struct {
	Exists        func(addr mailutil.Addr) (bool, error)
	ExistResponse string // LMTP socket path
	// contains filtered or unexported fields
}

func NewServer added in v0.13.0

func NewServer(exists func(addr mailutil.Addr) (bool, error), existResponse string) *Server

func (*Server) Close added in v0.13.0

func (srv *Server) Close() error

Close immediately closes all active listeners and connections. It returns any error returned from closing the server's underlying listener(s).

func (*Server) Serve added in v0.13.0

func (srv *Server) Serve(l net.Listener) error

Serve accepts incoming connections on the Listener l. For each email address for which srv.Exists returns true, srv.ExistResponse is returned. The reply argument will usually be the absolute path to your LMTP socket.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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