Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator ...
func (*Authenticator) Authenticate ¶
func (a *Authenticator) Authenticate(login string, pass interface{}) (err error)
Authenticate ...
func (*Authenticator) Register ¶ added in v0.5.0
func (a *Authenticator) Register(fn func(login, password string) (err error)) (err error)
Register ...
func (*Authenticator) Unregister ¶ added in v0.5.0
func (a *Authenticator) Unregister(fn func(login, password string) (err error)) (err error)
Unregister ...
type MqttAuthenticator ¶ added in v0.5.0
type MqttAuthenticator interface { Authenticate(login string, pass interface{}) (err error) Register(fn func(login, password string) (err error)) (err error) Unregister(fn func(login, password string) (err error)) (err error) }
MqttAuthenticator ...
func NewAuthenticator ¶
func NewAuthenticator(adaptors *adaptors.Adaptors) MqttAuthenticator
NewAuthenticator ...
Click to show internal directories.
Click to hide internal directories.