Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessType ¶
type AccessType int
AccessType acl type
const ( AccessTypeRead AccessType = 1 AccessTypeWrite = 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 Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager auth
type Provider ¶
type Provider interface { // Password try authenticate with username and password Password(string, string) Status // ACL check access type for client id with username ACL(id string, username string, topic string, accessType AccessType) Status }
Provider interface
type SessionPermissions ¶
type SessionPermissions interface {
ACL(id string, username string, topic string, accessType AccessType) Status
}
SessionPermissions check session permissions
Click to show internal directories.
Click to hide internal directories.