Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestConnection ¶
func NewTestConnection(transcript io.Writer) (s *Server, clientConn *textproto.Conn, serverConn *conn.Conn, server *Server, err error)
NewTestConnection is for test facilitation. Creates a server and then dials the server, returning the connection, allowing test to inject state and wait for an expected response The connection must be started manually with `go conn.Start()` once desired state has been injected
Types ¶
type Server ¶
Server represents an IMAP server instance.
func NewServer ¶
NewServer initialises a new Server. Note that this does not start the server. You must called either Listen() followed by Serve() or call ListenAndServe()
func (*Server) ListenAndServe ¶
ListenAndServe is shorthand for calling Serve() with a listener listening on the default port.
Click to show internal directories.
Click to hide internal directories.