Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebSocketV1AuthenticationResponse ¶
type WebSocketV1AuthenticationResponse struct {
Op string `json:"op"`
Timestamp int64 `json:"ts"`
ErrorCode int `json:"err-code"`
Data *struct {
UserId int `json:"user-id"`
}
}
func ParseWSV1AuthResp ¶
func ParseWSV1AuthResp(message string) *WebSocketV1AuthenticationResponse
func (*WebSocketV1AuthenticationResponse) IsAuth ¶
func (p *WebSocketV1AuthenticationResponse) IsAuth() bool
type WebSocketV2AuthenticationResponse ¶
type WebSocketV2AuthenticationResponse struct {
base.WebSocketV2ResponseBase
}
func ParseWSV2AuthResp ¶
func ParseWSV2AuthResp(message string) *WebSocketV2AuthenticationResponse
Click to show internal directories.
Click to hide internal directories.