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

Method DoUsage

internal/nodeapi/api.go:81–83  ·  view source on GitHub ↗

DoUsage 取一次 usage 快照。reset=true 时会重置 xray 的累计计数器。

(reset bool)

Source from the content-addressed store, hash-verified

79
80// DoUsage 取一次 usage 快照。reset=true 时会重置 xray 的累计计数器。
81func (a *API) DoUsage(reset bool) coremanager.UsageStats {
82return a.activeManager().Usage(reset)
83}
84
85// DoConfig 返回当前生效的 xray 配置 JSON 字符串(包装在 {"config":...})。
86func (a *API) DoConfig() map[string]any {

Callers

nothing calls this directly

Calls 2

activeManagerMethod · 0.95
UsageMethod · 0.65

Tested by

no test coverage detected