Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorization ¶
type Authorization struct { Topic string `json:"topic"` Channels []string `json:"channels"` Permissions []string `json:"permissions"` }
func (*Authorization) HasPermission ¶
func (a *Authorization) HasPermission(permission string) bool
func (*Authorization) IsAllowed ¶
func (a *Authorization) IsAllowed(topic, channel string) bool
Click to show internal directories.
Click to hide internal directories.