Documentation ¶
Index ¶
- type LatencyServer
- func (l *LatencyServer) Clear(agentID int64)
- func (l *LatencyServer) GetSystemLatency() int64
- func (l *LatencyServer) GetSystemLatencyList() []int64
- func (l *LatencyServer) GetUserLatency() map[int64]int64
- func (l *LatencyServer) OnUpdate(agentID int64, fn func(latency int64))
- func (l *LatencyServer) Ping(agentID int64, sendTime int64)
- func (l *LatencyServer) Pong(agentID int64, revice string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LatencyServer ¶
LatencyServer 延时管理器
func NewLatencyServer ¶
func NewLatencyServer() *LatencyServer
func (*LatencyServer) Clear ¶
func (l *LatencyServer) Clear(agentID int64)
func (*LatencyServer) GetSystemLatency ¶
func (l *LatencyServer) GetSystemLatency() int64
func (*LatencyServer) GetSystemLatencyList ¶
func (l *LatencyServer) GetSystemLatencyList() []int64
func (*LatencyServer) GetUserLatency ¶
func (l *LatencyServer) GetUserLatency() map[int64]int64
func (*LatencyServer) OnUpdate ¶
func (l *LatencyServer) OnUpdate(agentID int64, fn func(latency int64))
func (*LatencyServer) Ping ¶
func (l *LatencyServer) Ping(agentID int64, sendTime int64)
func (*LatencyServer) Pong ¶
func (l *LatencyServer) Pong(agentID int64, revice string)
Click to show internal directories.
Click to hide internal directories.