Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthState ¶
type AuthState 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 ¶
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.