MCPcopy Index your code
hub / github.com/coder/coder / SetConnStatsCallback

Method SetConnStatsCallback

agent/stats.go:19–19  ·  view source on GitHub ↗
(maxPeriod time.Duration, maxConns int, dump func(start, end time.Time, virtual, physical map[netlogtype.Connection]netlogtype.Counts))

Source from the content-addressed store, hash-verified

17
18type networkStatsSource interface {
19 SetConnStatsCallback(maxPeriod time.Duration, maxConns int, dump func(start, end time.Time, virtual, physical map[netlogtype.Connection]netlogtype.Counts))
20}
21
22type statsCollector interface {

Callers 3

setStatsCallbackFunction · 0.65
reportLoopMethod · 0.65
reportLockedMethod · 0.65

Implementers 2

Conntailnet/conn.go
fakeNetworkStatsSourceagent/stats_internal_test.go

Calls

no outgoing calls

Tested by

no test coverage detected