Versions in this module Expand all Collapse all v0 v0.8.1 Feb 3, 2021 v0.8.0 Dec 23, 2020 Changes in this version + const ReadLimit + var ErrPlainAuthNotSupported = errors.New("the server does not support PLAIN authentication") + var ErrPlainAuthTLSRequired = errors.New("PLAIN authentication requires a TLS connection") + func IsNetUnicode(s string) bool + func LookupService(domain string) ([]string, error) + type Auth interface + Next func(challenge []byte, more bool) (response []byte, err error) + Start func(server *ServerInfo) (mechanism string, response []byte, err error) + func PlainAuth(identity, username, password, host string) Auth + type AuthenticationError string + func (e AuthenticationError) Error() string + type Client struct + func Dial(addr string) (*Client, error) + func NewClient(conn net.Conn, host string) (*Client, error) + func (c *Client) ActivateScript(name string) error + func (c *Client) Authenticate(a Auth) error + func (c *Client) CheckScript(content string) (warnings string, err error) + func (c *Client) Close() error + func (c *Client) DeleteScript(name string) error + func (c *Client) Extensions() []string + func (c *Client) GetScript(name string) (string, error) + func (c *Client) HaveSpace(name string, size int64) (bool, error) + func (c *Client) Implementation() string + func (c *Client) ListScripts() ([]string, string, error) + func (c *Client) Logout() error + func (c *Client) MaxRedirects() int + func (c *Client) Noop() error + func (c *Client) NotifyMethods() []string + func (c *Client) PutScript(name, content string) (warnings string, err error) + func (c *Client) RenameScript(oldName, newName string) error + func (c *Client) SASLMechanisms() []string + func (c *Client) StartTLS(config *tls.Config) error + func (c *Client) SupportsRFC5804() bool + func (c *Client) SupportsTLS() bool + func (c *Client) TLSConnectionState() (state tls.ConnectionState, ok bool) + type ConnClosedError struct + Code string + Msg string + func (e *ConnClosedError) Error() string + type HostNameVerificationError struct + ActualHost string + ExpectedHost string + func (e *HostNameVerificationError) Error() string + type NotSupportedError string + func (e NotSupportedError) Error() string + type ParserError string + func (e ParserError) Error() string + type ProtocolError string + func (e ProtocolError) Error() string + type ServerError struct + Code string + Msg string + func (e *ServerError) Error() string + type ServerInfo struct + Auth []string + Name string + TLS bool + func (s *ServerInfo) HaveAuth(wanted string) bool