wsbase

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GZipCompress

func GZipCompress(input string) ([]byte, error)

func GZipDecompress

func GZipDecompress(input []byte) (string, error)

Types

type WSAuthData

type WSAuthData struct {
	Op string `json:"op"`

	AtType string `json:"type"`

	Cid string `json:"cid,omitempty"`

	AccessKeyId string `json:"AccessKeyId"`

	SignatureMethod string `json:"SignatureMethod"`

	SignatureVersion string `json:"SignatureVersion"`

	Timestamp string `json:"Timestamp"`

	Signature string `json:"Signature"`

	Ticket string `json:"ticket,omitempty"`
}

type WSOpData

type WSOpData struct {
	Op string `json:"op"`

	Cid string `json:"cid,omitempty"`

	Topic string `json:"topic"`
}

type WSReqData

type WSReqData struct {
	Req string `json:"req"`

	Id string `json:"id"`

	From int64 `json:"from,omitempty"`

	To int64 `json:"to,omitempty"`
}

type WSSubData

type WSSubData struct {
	Sub string `json:"sub"`

	Id string `json:"id"`

	DataType string `json:"data_type,omitempty"`
}

type WSUnreqData

type WSUnreqData struct {
	Unreq string `json:"unreq"`

	Id string `json:"id"`

	From int64 `json:"from"`

	To int64 `json:"to"`
}

type WSUnsubData

type WSUnsubData struct {
	Unsub string `json:"unsub"`

	Id string `json:"id"`

	DataType string `json:"data_type,omitempty"`
}

Jump to

Keyboard shortcuts

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