Documentation ¶
Index ¶
Constants ¶
View Source
const EventSubVersion = "1"
Variables ¶
View Source
var ( MethodWebhook = "webhook" MethodWebsocket = "websocket" )
Functions ¶
This section is empty.
Types ¶
type ESM ¶
type Event ¶
type Event struct { Subscription struct { Type string `json:"type"` } `json:"subscription"` Event json.RawMessage `json:"event"` }
type EventChannelUpdate ¶
type EventChannelUpdate struct { //broadcaster_user_id: "22484632", //broadcaster_user_login: "forsen", //broadcaster_user_name: "forsen", BroadcasterUserID string `json:"broadcaster_user_id"` BroadcasterUserLogin string `json:"broadcaster_user_login"` BroadcasterUserName string `json:"broadcaster_user_name"` //category_id: "509658", //category_name: "Just Chatting", CategoryID string `json:"category_id"` CategoryName string `json:"category_name"` //is_mature: true, //language: "en", //title: "Games and shit!" IsMature bool `json:"is_mature"` Language string `json:"language"` Title string `json:"title"` }
EventChannelUpdate is sent on `channel.update` events.
type EventStreamOffline ¶
type EventStreamOnline ¶
type EventStreamOnline struct { ID string `json:"id"` // "39716786411" Type string `json:"type"` // "live" BroadcasterUserID string `json:"broadcaster_user_id"` BroadcasterUserLogin string `json:"broadcaster_user_login"` BroadcasterUserName string `json:"broadcaster_user_name"` StartedAt string `json:"started_at"` }
type EventSubCondition ¶
type EventSubCondition struct {
BroadcasterUserID string `json:"broadcaster_user_id,omitempty"`
}
type EventSubTransport ¶
type WebSocket ¶
type WebSocket struct { ID string // contains filtered or unexported fields }
func (*WebSocket) Receive ¶
type WebsocketWelcome ¶
type WebsocketWelcome struct { Metadata struct { // "message_id":"ca351034-c602-49f7-b0c8-e31fbef90ec1", //"message_type":"websocket_welcome", //"message_timestamp":"2021-07-15T19:03:59Z", MessageID string `json:"message_id"` MessageType string `json:"message_type"` MessageTimestamp string `json:"message_timestamp"` } `json:"metadata"` Payload struct { WebSocket struct { ID string `json:"id"` Status string `json:"status"` } `json:"websocket"` } `json:"payload"` }
Click to show internal directories.
Click to hide internal directories.