Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Version Version byte = 'V' // message type Unknown int = 0 TextData int = 1 BinData int = 2 PingData int = 9 PongData int = 10 // proto type Text int = 1 Json int = 2 ProtoBuf int = 3 )
View Source
const ( XForwardedFor = "X-Forwarded-For" XRealIP = "X-Real-IP" Host = "Host" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonPackage ¶
type JsonPackage struct { Event string `json:"event"` Data interface{} `json:"data"` }
type ProtoBufPackage ¶
type PushPackage ¶ added in v1.0.9
type Receive ¶
type Receive struct { Context Context Params Params Body *ReceivePackage }
Click to show internal directories.
Click to hide internal directories.