Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PingMessage ¶
type PingMessage struct {
Ping int64 `json:"ping"`
}
func ParsePingMessage ¶
func ParsePingMessage(message string) *PingMessage
type PingV1Message ¶
func ParsePingV1Message ¶
func ParsePingV1Message(message string) *PingV1Message
func (*PingV1Message) IsPing ¶
func (p *PingV1Message) IsPing() bool
type PingV2Message ¶
type PingV2Message struct { Action string `json:"action"` Data *struct { Timestamp int64 `json:"ts"` } }
func ParsePingV2Message ¶
func ParsePingV2Message(message string) *PingV2Message
func (*PingV2Message) IsPing ¶
func (p *PingV2Message) IsPing() bool
type WebSocketV1AuthenticationRequest ¶
type WebSocketV1AuthenticationRequest struct { Op string `json:"op"` AccessKeyId string SignatureMethod string SignatureVersion string Timestamp string Signature string }
func (*WebSocketV1AuthenticationRequest) Init ¶
func (p *WebSocketV1AuthenticationRequest) Init() *WebSocketV1AuthenticationRequest
type WebSocketV2AuthenticationRequest ¶
type WebSocketV2AuthenticationRequest struct { Action string `json:"action"` Ch string `json:"ch"` Params *Params `json:"params"` }
func (*WebSocketV2AuthenticationRequest) Init ¶
func (p *WebSocketV2AuthenticationRequest) Init() *WebSocketV2AuthenticationRequest
Click to show internal directories.
Click to hide internal directories.