Documentation ¶
Index ¶
- Constants
- type NWSClient
- func GetInstanceWSC(name string) *NWSClient
- func NewCRNWSClient() *NWSClient
- func NewCSNWSClient() *NWSClient
- func NewDPNWSClient() *NWSClient
- func NewHTNWSClient() *NWSClient
- func NewInstanceWSC(name string, scheme string, host string, path string) (*NWSClient, error)
- func NewSTNWSClient() *NWSClient
- func NewTKNWSClient() *NWSClient
- func (nws *NWSClient) Close()
- func (nws *NWSClient) Reconnect()
- func (nwsc *NWSClient) StartCRNWSClient()
- func (nwsc *NWSClient) StartCSNWSClient()
- func (nwsc *NWSClient) StartDPNWSClient()
- func (nwsc *NWSClient) StartHTNWSClient()
- func (nwsc *NWSClient) StartSTNWSClient()
- func (nwsc *NWSClient) StartTKNWSClient()
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 ¶
GetInstanceWSC Singleton NWSClient
func NewInstanceWSC ¶
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) 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
Click to show internal directories.
Click to hide internal directories.