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
type State ¶
type State struct { TTL int `json:"ttl"` Authorizations []Authorization `json:"authorizations"` Identity string `json:"identity"` IdentityURL string `json:"identity_url"` Expires time.Time }
func QueryAnyAuthd ¶
func QueryAuthd ¶
Click to show internal directories.
Click to hide internal directories.