mqtt_authenticator

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

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)
	//DEPRECATED
	Register(fn func(login, password string) (err error)) (err error)
	//DEPRECATED
	Unregister(fn func(login, password string) (err error)) (err error)
}

MqttAuthenticator ...

func NewAuthenticator

func NewAuthenticator(adaptors *adaptors.Adaptors) MqttAuthenticator

NewAuthenticator ...

Jump to

Keyboard shortcuts

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