nwsc

package
v0.0.0-...-c1749d8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// NameDPWSC depthpriceclient
	NameDPWSC = "depthpriceclient"
	// NameCSWSC candlesticksclient
	NameCSWSC = "candlesticksclient"
	// NameHTWSC historytradeclient
	NameHTWSC = "historytradeclient"
	// NameTKWSC ticker24hclient
	NameTKWSC = "ticker24hclient"
	// NameRSWSC reloadsymbolclient
	NameRSWSC = "reloadsymbolclient"
	// NameCRWSC cerberusclient
	NameCRWSC = "cerberusclient"
	// NameSTWSC streamclient
	NameSTWSC = "streamclient"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NWSClient

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

NWSClient struct

func GetInstanceWSC

func GetInstanceWSC(name string) *NWSClient

GetInstanceWSC Singleton NWSClient

func NewCRNWSClient

func NewCRNWSClient() *NWSClient

NewCRNWSClient new instance of NWSClient

func NewCSNWSClient

func NewCSNWSClient() *NWSClient

NewCSNWSClient new instance of NWSClient

func NewDPNWSClient

func NewDPNWSClient() *NWSClient

NewDPNWSClient new instance of NWSClient

func NewHTNWSClient

func NewHTNWSClient() *NWSClient

NewHTNWSClient new instance of NWSClient

func NewInstanceWSC

func NewInstanceWSC(name string, scheme string, host string, path string) (*NWSClient, error)

NewInstanceWSC new object NWSClient

func NewSTNWSClient

func NewSTNWSClient() *NWSClient

NewSTNWSClient new instance STWSClient of NWSClient

func NewTKNWSClient

func NewTKNWSClient() *NWSClient

NewTKNWSClient new instance TKWSClient of NWSClient

func (*NWSClient) Close

func (nws *NWSClient) Close()

Close NWSClient

func (*NWSClient) Reconnect

func (nws *NWSClient) Reconnect()

Reconnect is method auto-reconnect to websocket server.

func (*NWSClient) StartCRNWSClient

func (nwsc *NWSClient) StartCRNWSClient()

StartCRNWSClient start

func (*NWSClient) StartCSNWSClient

func (nwsc *NWSClient) StartCSNWSClient()

StartCSNWSClient start

func (*NWSClient) StartDPNWSClient

func (nwsc *NWSClient) StartDPNWSClient()

StartDPNWSClient start

func (*NWSClient) StartHTNWSClient

func (nwsc *NWSClient) StartHTNWSClient()

StartHTNWSClient start

func (*NWSClient) StartSTNWSClient

func (nwsc *NWSClient) StartSTNWSClient()

StartSTNWSClient start

func (*NWSClient) StartTKNWSClient

func (nwsc *NWSClient) StartTKNWSClient()

StartTKNWSClient start

Jump to

Keyboard shortcuts

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