Documentation ¶ Index ¶ type Backend func New(addr string, unlock unlock.UnlockFunction) *Backend func NewTLS(addr string, tlsConfig *tls.Config, unlock unlock.UnlockFunction) *Backend func (be *Backend) Login(username, password string) (backend.User, error) type Security Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Backend ¶ type Backend struct { Addr string Security Security TLSConfig *tls.Config Unlock unlock.UnlockFunction // contains filtered or unexported fields } func New ¶ func New(addr string, unlock unlock.UnlockFunction) *Backend func NewTLS ¶ func NewTLS(addr string, tlsConfig *tls.Config, unlock unlock.UnlockFunction) *Backend func (*Backend) Login ¶ func (be *Backend) Login(username, password string) (backend.User, error) type Security ¶ type Security int const ( SecurityNone Security = iota SecuritySTARTTLS SecurityTLS ) Source Files ¶ View all Source files backend.go mailbox.go message.go user.go Click to show internal directories. Click to hide internal directories.