Documentation
¶
Index ¶
- Constants
- Variables
- type AuthPart
- type Channel
- type ChannelInfo
- type ChannelList
- type Client
- func (c *Client) AllChannels() (*ChannelList, error)
- func (c *Client) Channel(name string, queryParameters map[string]string) (*Channel, error)
- func (c *Client) Channels(queryParameters map[string]string) (*ChannelList, error)
- func (c *Client) Publish(data, event string, channels ...string) error
- func (c *Client) Users(channelName string) (*UserList, error)
- type OrderedAuthParts
- type Payload
- type Signature
- type UserInfo
- type UserList
Constants ¶
View Source
const AuthVersion = "1.0"
Variables ¶
View Source
var HttpClient = http.Client{}
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type ChannelInfo ¶
type ChannelInfo struct {
UserCount int `json:"user_count"`
}
type ChannelList ¶
type ChannelList struct {
List map[string]ChannelInfo `json:"channels"`
}
func (*ChannelList) String ¶
func (c *ChannelList) String() string
type Client ¶
func (*Client) AllChannels ¶
func (c *Client) AllChannels() (*ChannelList, error)
type OrderedAuthParts ¶
type OrderedAuthParts []*AuthPart
func (OrderedAuthParts) Len ¶
func (s OrderedAuthParts) Len() int
func (OrderedAuthParts) Less ¶
func (s OrderedAuthParts) Less(i, j int) bool
func (OrderedAuthParts) Swap ¶
func (s OrderedAuthParts) Swap(i, j int)
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func (*Signature) EncodedQuery ¶
Click to show internal directories.
Click to hide internal directories.