Documentation ¶
Overview ¶
Package plain provides PLAIN sasl authentication as specified in RFC4616.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct { // Zid is an optional authorization ID to use in authenticating. Zid string // User is username to use for authentication. User string // Pass is the password to use for authentication. Pass string // contains filtered or unexported fields }
Auth contains information for authentication.
func (Auth) AsMechanism ¶
AsMechanism returns a sasl mechanism that will use 'a' as credentials for all sasl sessions.
This is a shortcut for using the Plain function and is useful when you do not need to live-rotate credentials.
Click to show internal directories.
Click to hide internal directories.