Documentation ¶
Index ¶
Constants ¶
const ( // NameDPWSS depthprice NameDPWSS = "depthprice" // NameCSWSS candlesticks NameCSWSS = "candlesticks" // NameHTWSS historytrade NameHTWSS = "historytrade" // NameTKWSS ticker24h NameTKWSS = "ticker24h" // NameCRWSS cerberus NameCRWSS = "cerberus" )
Variables ¶
var MapSymbol = make(map[string]string)
MapSymbol Const
var TKDataCache string
TKDataCache cache TKData
var TKDataCacheCR string
TKDataCacheCR cache TKData CR
var TypeTime = map[string]string{
"1m": "1m",
"5m": "5m",
"15m": "15m",
"30m": "30m",
"1h": "1h",
"2h": "2h",
"4h": "4h",
"6h": "6h",
"12h": "12h",
"1d": "1d",
"1w": "1w",
}
TypeTime type time
Functions ¶
Types ¶
type CRWSServer ¶
type CRWSServer struct {
// contains filtered or unexported fields
}
CRWSServer class
type CSWSServer ¶
type CSWSServer struct {
// contains filtered or unexported fields
}
CSWSServer class
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a middleman between the websocket connection and the hub.
type ClientCR ¶
type ClientCR struct {
// contains filtered or unexported fields
}
ClientCR is a middleman between the websocket connection and the hub.
type ClientLevel1 ¶
type ClientLevel1 struct {
// contains filtered or unexported fields
}
ClientLevel1 is a middleman between the websocket connection and the hub.
type ClientLevel2 ¶
type ClientLevel2 struct {
// contains filtered or unexported fields
}
ClientLevel2 is a middleman between the websocket connection and the hub.
type DPWSServer ¶
type DPWSServer struct {
// contains filtered or unexported fields
}
DPWSServer class
type HTWSServer ¶
type HTWSServer struct {
// contains filtered or unexported fields
}
HTWSServer class
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub maintain the set of active clients and broadcasts message to the client.
func (*Hub) BroadcastMsgByte ¶
BroadcastMsgByte broadcast msg byte
type HubCR ¶
type HubCR struct {
// contains filtered or unexported fields
}
HubCR maintain the set of active clients and broadcasts message to the client.
func (*HubCR) BroadcastMsg ¶
BroadcastMsg broadcast msg string
func (*HubCR) BroadcastMsgByte ¶
BroadcastMsgByte broadcast msg byte
func (*HubCR) GetSizeClientCR ¶
GetSizeClientCR get size client CR
func (*HubCR) GetSizeSymbolClientCR ¶
GetSizeSymbolClientCR get size client CR belong symbol
type HubLevel1 ¶
type HubLevel1 struct {
// contains filtered or unexported fields
}
HubLevel1 maintain the set of active clients and broadcasts message to the client.
func (*HubLevel1) BroadcastMsg ¶
BroadcastMsg broadcast msg string
func (*HubLevel1) BroadcastMsgByte ¶
BroadcastMsgByte broadcast msg byte
func (*HubLevel1) GetSizeClientLevel1 ¶
GetSizeClientLevel1 get size client
type HubLevel2 ¶
type HubLevel2 struct {
// contains filtered or unexported fields
}
HubLevel2 maintain the set of active clients and broadcasts message to the client.
func (*HubLevel2) BroadcastMsg ¶
BroadcastMsg broadcast msg string
func (*HubLevel2) BroadcastMsgByte ¶
BroadcastMsgByte broadcast msg byte
func (*HubLevel2) GetSizeClientLevel2 ¶
GetSizeClientLevel2 get size client
type TKWSServer ¶
type TKWSServer struct {
// contains filtered or unexported fields
}
TKWSServer class