Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMessage ¶
type AuthMessage struct { WebsocketMessage UserToken string `json:"usertoken"` AccessToken string `json:"accesstoken"` }
type ConsumeMessage ¶
type ConsumeMessage struct { WebsocketMessage Channel *string `json:"channel,omitempty"` }
type Hearkat ¶
type Message ¶
type Message struct { Notification *Notification `json:"notification,omitempty"` News *News `json:"news,omitempty"` Chat *Chat `json:"chat,omitempty"` Job *Job `json:"job,omitempty"` ShopItem *ShopItem `json:"shopItem,omitempty"` Event *Event `json:"event,omitempty"` Metadata *Metadata `json:"metadata,omitempty"` Tags *Tags `json:"tags,omitempty"` }
type MessageContainer ¶
type Notification ¶
type Stream ¶
type Stream struct { Messages chan *MessageContainer Errors chan error // contains filtered or unexported fields }
type WebsocketMessage ¶
type WebsocketMessage struct {
Type string `json:"type"`
}
Click to show internal directories.
Click to hide internal directories.