Documentation ¶
Index ¶
- type Checker
- func (o *Checker) CheckAcl(username, topic, clientid string, acc int32) (bool, error)
- func (o *Checker) GetSuperuser(username string) (bool, error)
- func (o *Checker) GetUser(username, password, clientid string) (bool, error)
- func (o *Checker) Halt()
- func (o *Checker) Users() map[string]*staticFileUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
Checker holds paths to static files, list of file users and general (no user or pattern) acl records.
func NewChecker ¶
func NewChecker(backends, passwordPath, aclPath string, logLevel log.Level, hasher hashing.HashComparer) (*Checker, error)
NewCheckers initializes a static files checker.
func (*Checker) CheckAcl ¶
CheckAcl checks that the topic may be read/written by the given user/clientid.
func (*Checker) GetSuperuser ¶
GetSuperuser returns false as there are no files superusers.
Click to show internal directories.
Click to hide internal directories.