imap

package
v0.0.0-...-550d1a2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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
)

Jump to

Keyboard shortcuts

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