MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / countingUsageAPI

Struct countingUsageAPI

internal/nodeagent/integration_test.go:55–57  ·  view source on GitHub ↗

countingUsageAPI 实现 UsageSnapshotProvider,统计 reset 调用次数。

Source from the content-addressed store, hash-verified

53
54// countingUsageAPI 实现 UsageSnapshotProvider,统计 reset 调用次数。
55type countingUsageAPI struct {
56 resets atomic.Int32
57}
58
59func (c *countingUsageAPI) DoUsage(reset bool) coremanager.UsageStats {
60 if reset {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected