Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allow ¶
type Allow struct{}
Allow is an auth controller which allows access to all connections and topics.
type Controller ¶
type Controller interface { // Authenticate authenticates a user on CONNECT and returns true if a user is // allowed to join the server and optionally return new username Authenticate(user, password []byte) (*[]byte, bool) // ACL returns true if a user has read or write access to a given topic. ACL(user []byte, topic string, write bool) bool }
Controller is an interface for authentication controllers.
Click to show internal directories.
Click to hide internal directories.