wsc

package
v0.0.0-...-b7e06eb Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 12 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"
)

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 NewCRWSClient

func NewCRWSClient() *NWSClient

NewCRWSClient new instance CRWSClient of NWSClient

func NewCSWSClient

func NewCSWSClient() *NWSClient

NewCSWSClient new instance CSWSClient of NWSClient

func NewDPWSClient

func NewDPWSClient() *NWSClient

NewDPWSClient new instance of NWSClient

func NewHTWSClient

func NewHTWSClient() *NWSClient

NewHTWSClient new instance HTWSClient of NWSClient

func NewInstanceWSC

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

NewInstanceWSC new object NWSClient

func NewRSWSClient

func NewRSWSClient() *NWSClient

NewRSWSClient new instance RSWSClient of NWSClient

func NewTKWSClient

func NewTKWSClient() *NWSClient

NewTKWSClient 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) StartCRWSClient

func (wsc *NWSClient) StartCRWSClient()

StartCRWSClient start

func (*NWSClient) StartCSWSClient

func (wsc *NWSClient) StartCSWSClient()

StartCSWSClient start

func (*NWSClient) StartDPWSClient

func (wsc *NWSClient) StartDPWSClient()

StartDPWSClient start

func (*NWSClient) StartHTWSClient

func (wsc *NWSClient) StartHTWSClient()

StartHTWSClient start

func (*NWSClient) StartRSWSClient

func (wsc *NWSClient) StartRSWSClient()

StartRSWSClient start RSWSClient

func (*NWSClient) StartTKWSClient

func (wsc *NWSClient) StartTKWSClient()

StartTKWSClient start

Jump to

Keyboard shortcuts

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