MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / GetStats

Function GetStats

internal/web/stats.go:30–35  ·  view source on GitHub ↗

Returns a copy of the server stats

()

Source from the content-addressed store, hash-verified

28
29// Returns a copy of the server stats
30func GetStats() Stats {
31 statsLock.RLock()
32 defer statsLock.RUnlock()
33
34 return serverStats
35}
36
37// Returns a copy of the server stats
38func UpdateStats(s Stats) {

Callers 6

UpdateStatsMethod · 0.92
serveAdminTemplateFunction · 0.85
apiV1GetConnectionsFunction · 0.85
RegisterAdminPageMethod · 0.85
serveTemplateFunction · 0.85
adminIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected