Documentation ¶
Index ¶
Constants ¶
View Source
const ( RequestTypeSubscribeEvent = "subscribe_event" RequestTypeUnsubscribeEvent = "unsubscribe_event" )
Request types
View Source
const (
ResponseTypeEvent = "event"
)
Response types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Type string `json:"type" yaml:"type"` Data interface{} `json:"data" yaml:"data"` }
Request for websocket
type Response ¶
type Response struct { Type string `json:"type" yaml:"type"` Data interface{} `json:"data" yaml:"data"` }
Response of a websocket
type SubscribeRequest ¶
SubscribeRequest details
type UnsubscribeRequest ¶
unsubscribeRequest details
Click to show internal directories.
Click to hide internal directories.