latency

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LatencyServer

type LatencyServer struct {
	*zap.Logger
	// contains filtered or unexported fields
}

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)

Jump to

Keyboard shortcuts

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