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

Struct fakeNetworkStatsSource

agent/stats_internal_test.go:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136type fakeNetworkStatsSource struct {
137 sync.Mutex
138 ctx context.Context
139 t testing.TB
140 callback func(start, end time.Time, virtual, physical map[netlogtype.Connection]netlogtype.Counts)
141 period chan time.Duration
142}
143
144func (f *fakeNetworkStatsSource) SetConnStatsCallback(maxPeriod time.Duration, _ int, dump func(start time.Time, end time.Time, virtual map[netlogtype.Connection]netlogtype.Counts, physical map[netlogtype.Connection]netlogtype.Counts)) {
145 f.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected