metrics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetricsNamePrefix = ""

指标名前缀,需要Reg之前设置

Functions

func RegGNetServer

func RegGNetServer[ClientId any, ClientInfo any](gnet *gnetserver.GNetServer[ClientId, ClientInfo])

GNetServer统计

func RegGinServer

func RegGinServer(gin *ginserver.GinServer)

GinServer统计

func RegGoRedis

func RegGoRedis(redis *goredis.Redis)

GoRedis统计

func RegHttp

func RegHttp()

Http调用统计

func RegHttpBackend

func RegHttpBackend[ServerInfo any](hb *backend.HttpBackend[ServerInfo])

HTTPBackend统计

func RegMsgDispatch

func RegMsgDispatch[Mr utils.RecvMsger, Cr any](md *dispatch.MsgDispatch[Mr, Cr])

MsgDispatch统计

func RegMySQL

func RegMySQL(mysql *mysql.MySQL)

MySQL统计

func RegRedis

func RegRedis(redis *redis.Redis)

Redis统计

func RegTCPBackend

func RegTCPBackend[ServerInfo any](tb *backend.TcpBackend[ServerInfo])

TCPBackend统计

func RegTCPServer

func RegTCPServer[ClientId any, ClientInfo any](ts *tcpserver.TCPServer[ClientId, ClientInfo])

TCPServer统计

Types

type ConnCount

type ConnCount interface {
	ConnCount() (int, int)
	ClientCount() int
}

Jump to

Keyboard shortcuts

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