model

package
v0.0.0-...-2ee972e Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookInfo

type BookInfo struct {
	Asks     []interface{} `json:"asks"`
	Bids     []interface{} `json:"bids"`
	Checksum string        `json:"checksum"`
}

func (*BookInfo) CheckSum

func (bi *BookInfo) CheckSum(cs uint32) bool

func (*BookInfo) Merge

func (bi *BookInfo) Merge(book BookInfo) BookInfo

@todo

type Set

type Set struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewSet

func NewSet() *Set

func (*Set) Add

func (s *Set) Add(item inter)

func (*Set) Clear

func (s *Set) Clear()

func (*Set) Has

func (s *Set) Has(item inter) bool

func (*Set) IsEmpty

func (s *Set) IsEmpty() bool

func (*Set) Len

func (s *Set) Len() int

func (*Set) List

func (s *Set) List() []inter

func (*Set) Remove

func (s *Set) Remove(item inter)

type SubscribeReq

type SubscribeReq struct {
	InstType string `json:"instType"`
	Channel  string `json:"channel"`
	InstId   string `json:"instId"`
}

type WsBaseReq

type WsBaseReq struct {
	Op   string        `json:"op"`
	Args []interface{} `json:"args"`
}

type WsLoginBaseReq

type WsLoginBaseReq struct {
	Op   string       `json:"op"`
	Args []WsLoginReq `json:"args"`
}

type WsLoginReq

type WsLoginReq struct {
	ApiKey     string `json:"apiKey"`
	Passphrase string `json:"passphrase"`
	Timestamp  string `json:"timestamp"`
	Sign       string `json:"sign"`
}

Jump to

Keyboard shortcuts

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