Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessType ¶
type AccessType int
AccessType acl type
const ( AccessRead AccessType = 1 AccessWrite AccessType = 2 )
nolint: golint
func (AccessType) Type ¶
func (t AccessType) Type() string
Type return string representation of the type
type Error ¶
type Error int
Error auth provider errors
type IFace ¶
type IFace interface { Permissions // Password try authenticate with username and password Password(clientID, user, password string) error // Shutdown provider Shutdown() error }
IFace interface to auth backends
type Permissions ¶
type Permissions interface { // ACL check access type for client id with username ACL(clientID, username, topic string, accessType AccessType, requestedQoS mqttp.QosType) (mqttp.QosType, error) }
Permissions check session permissions
Click to show internal directories.
Click to hide internal directories.