model

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	AuthType         string `json:"authType"`
	AccessKey        string `json:"accessKey"`
	SignatureMethod  string `json:"signatureMethod"`
	SignatureVersion string `json:"signatureVersion"`
	Timestamp        string `json:"timestamp"`
	Signature        string `json:"signature"`
}

type PingMessage

type PingMessage struct {
	Ping int64 `json:"ping"`
}

func ParsePingMessage

func ParsePingMessage(message string) *PingMessage

type PingV1Message

type PingV1Message struct {
	Op        string `json:"op"`
	Timestamp int64  `json:"ts"`
}

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

type WebSocketV2AuthenticationRequest

type WebSocketV2AuthenticationRequest struct {
	Action string  `json:"action"`
	Ch     string  `json:"ch"`
	Params *Params `json:"params"`
}

func (*WebSocketV2AuthenticationRequest) Init

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL