Versions in this module Expand all Collapse all v0 v0.1.1 Jun 29, 2022 Changes in this version + const Anonymous + const External + const Login + const OAuthBearer + const Plain + var ErrUnexpectedClientResponse = errors.New("sasl: unexpected client response") + var ErrUnexpectedServerChallenge = errors.New("sasl: unexpected server challenge") + type AnonymousAuthenticator func(trace string) error + type Client interface + Next func(challenge []byte) (response []byte, err error) + Start func() (mech string, ir []byte, err error) + func NewAnonymousClient(trace string) Client + func NewExternalClient(identity string) Client + func NewLoginClient(username, password string) Client + func NewOAuthBearerClient(opt *OAuthBearerOptions) Client + func NewPlainClient(identity, username, password string) Client + type LoginAuthenticator func(username, password string) error + type OAuthBearerAuthenticator func(opts OAuthBearerOptions) *OAuthBearerError + type OAuthBearerError struct + Schemes string + Scope string + Status string + func (err *OAuthBearerError) Error() string + type OAuthBearerOptions struct + Host string + Port int + Token string + Username string + type PlainAuthenticator func(identity, username, password string) error + type Server interface + Next func(response []byte) (challenge []byte, done bool, err error) + func NewAnonymousServer(authenticator AnonymousAuthenticator) Server + func NewLoginServer(authenticator LoginAuthenticator) Server + func NewOAuthBearerServer(auth OAuthBearerAuthenticator) Server + func NewPlainServer(authenticator PlainAuthenticator) Server