Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTP = Protocol("HTTP") IMAP = Protocol("IMAP") SMTP = Protocol("SMTP") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶ added in v1.8.7
type Controller interface { ListenAndServe() Close() }
Controller will make sure that server is listening and serving and if needed users are disconnected.
func NewController ¶ added in v1.8.7
func NewController(s Server, l listener.Listener) Controller
NewController return simple server controller.
type Server ¶
type Server interface { Protocol() Protocol UseSSL() bool Address() string TLSConfig() *tls.Config DebugServer() bool DebugClient() bool SetLoggers(localDebug, remoteDebug io.Writer) HandlePanic() DisconnectUser(string) Serve(net.Listener) error StopServe() error }
Server can handle disconnected users.
type ServerErrorLogger ¶ added in v1.8.7
type ServerErrorLogger struct {
// contains filtered or unexported fields
}
ServerErrorLogger implements go-imap/logger interface.
func NewServerErrorLogger ¶ added in v1.8.7
func NewServerErrorLogger(protocol Protocol) *ServerErrorLogger
func (*ServerErrorLogger) Printf ¶ added in v1.8.7
func (s *ServerErrorLogger) Printf(format string, args ...interface{})
func (*ServerErrorLogger) Println ¶ added in v1.8.7
func (s *ServerErrorLogger) Println(args ...interface{})
Source Files ¶
Click to show internal directories.
Click to hide internal directories.