Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NameDPNWSS depthprice NameDPNWSS = "depthprice" // NameCSNWSS candlesticks NameCSNWSS = "candlesticks" // NameHTNWSS historytrade NameHTNWSS = "historytrade" // NameTKNWSS ticker24h NameTKNWSS = "ticker24h" // NameCRNWSS cerberus NameCRNWSS = "cerberus" // NameSTNWSS stream NameSTNWSS = "stream" )
Variables ¶
View Source
var MapSymbol = make(map[string]string)
MapSymbol Const
View Source
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 CRNWSServer ¶
type CRNWSServer struct {
// contains filtered or unexported fields
}
CRNWSServer struct
func (*CRNWSServer) BroadcastMsgByte ¶
func (nwss *CRNWSServer) BroadcastMsgByte(message []byte)
BroadcastMsgByte broadcast msg byte
type CSNWSServer ¶
type CSNWSServer struct {
// contains filtered or unexported fields
}
CSNWSServer struct
func (*CSNWSServer) BroadcastMsgByte ¶
func (nwss *CSNWSServer) BroadcastMsgByte(message []byte)
BroadcastMsgByte broadcast msg byte
type DPNWSServer ¶
type DPNWSServer struct {
// contains filtered or unexported fields
}
DPNWSServer struct
func (*DPNWSServer) BroadcastMsgByte ¶
func (nwss *DPNWSServer) BroadcastMsgByte(message []byte)
BroadcastMsgByte broadcast msg byte
type HTNWSServer ¶
type HTNWSServer struct {
// contains filtered or unexported fields
}
HTNWSServer struct
func (*HTNWSServer) BroadcastMsgByte ¶
func (nwss *HTNWSServer) BroadcastMsgByte(message []byte)
BroadcastMsgByte broadcast msg byte
type NEpoll ¶
type NEpoll struct {
// contains filtered or unexported fields
}
NEpoll struct
func (*NEpoll) GetTotalConn ¶
GetTotalConn get total connections
type STNWSServer ¶
type STNWSServer struct {
// contains filtered or unexported fields
}
STNWSServer struct
func (*STNWSServer) BroadcastMsgByte ¶
func (nwss *STNWSServer) BroadcastMsgByte(message []byte)
BroadcastMsgByte broadcast msg byte
type TKNWSServer ¶
type TKNWSServer struct {
// contains filtered or unexported fields
}
TKNWSServer struct
func (*TKNWSServer) BroadcastMsgByte ¶
func (nwss *TKNWSServer) BroadcastMsgByte(message []byte)
BroadcastMsgByte broadcast msg byte
Click to show internal directories.
Click to hide internal directories.