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

Method DoUsage

internal/nodeagent/usage.go:18–18  ·  view source on GitHub ↗
(reset bool)

Source from the content-addressed store, hash-verified

16// reset=true 时调用方应清零 xray 内部计数(推进 baseline)。
17type UsageSnapshotProvider interface {
18 DoUsage(reset bool) coremanager.UsageStats
19}
20
21// UsagePusher 周期性把 usage delta 主动 push 给 server,并按 ack-before-reset

Callers 2

tickMethod · 0.65
HandleMethod · 0.65

Implementers 4

countingUsageProviderinternal/integration/grpcpush_test.go
mockUsageAPIinternal/nodeagent/usage_test.go
countingUsageAPIinternal/nodeagent/integration_test.go
APIinternal/nodeapi/api.go

Calls

no outgoing calls

Tested by

no test coverage detected