events

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	// contains filtered or unexported fields
}

func (*Argument) Get

func (a *Argument) Get(k string) (interface{}, bool)

func (*Argument) UnmarshalJSON

func (a *Argument) UnmarshalJSON(buf []byte) error

type Basic

type Basic struct {
	ID    string         `json:"id,omitempty"`
	Event string         `json:"event"`
	Code  int            `json:"code,omitempty,string"`
	Msg   string         `json:"msg,omitempty"`
	Op    okex.Operation `json:"op,omitempty"`
	Arg   *Argument      `json:"arg,omitempty"`
	Args  []*Argument    `json:"args,omitempty"`
	Data  []*Argument    `json:"data,omitempty"`
}

type Error

type Error struct {
	Event string         `json:"event,omitempty"`
	Msg   string         `json:"msg,omitempty"`
	Op    string         `json:"op,omitempty"`
	Code  okex.JSONInt64 `json:"code"`
	Args  []*Argument    `json:"args,omitempty"`
	Arg   *Argument      `json:"arg,omitempty"`
	Data  []*Argument    `json:"data,omitempty"`
	ID    string         `json:"id,omitempty"`
}

type Login

type Login struct {
	Event string `json:"event"`
	Code  string `json:"code"`
	Msg   string `json:"msg"`
}

type Subscribe

type Subscribe struct {
	Event string    `json:"event"`
	Arg   *Argument `json:"arg"`
}

type Success

type Success struct {
	Code int            `json:"code,omitempty,string"`
	Msg  string         `json:"msg,omitempty"`
	ID   string         `json:"id,omitempty"`
	Op   okex.Operation `json:"op,omitempty"`
	Data []*Argument    `json:"data,omitempty"`
}

type Unsubscribe

type Unsubscribe struct {
	Event string    `json:"event"`
	Arg   *Argument `json:"arg"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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