MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / SetUsageStatisticsEnabled

Function SetUsageStatisticsEnabled

internal/redisqueue/usage_toggle.go:13–13  ·  view source on GitHub ↗

SetUsageStatisticsEnabled toggles whether usage records are enqueued into the redisqueue payload buffer. This is controlled by the config field `usage-statistics-enabled` and the corresponding management API.

(enabled bool)

Source from the content-addressed store, hash-verified

11// SetUsageStatisticsEnabled toggles whether usage records are enqueued into the redisqueue payload buffer.
12// This is controlled by the config field `usage-statistics-enabled` and the corresponding management API.
13func SetUsageStatisticsEnabled(enabled bool) { usageStatisticsEnabled.Store(enabled) }
14
15// UsageStatisticsEnabled reports whether the usage queue plugin should publish records.
16func UsageStatisticsEnabled() bool { return usageStatisticsEnabled.Load() }

Callers 5

UpdateClientsMethod · 0.92
mainFunction · 0.92
RunMethod · 0.92
withEnabledQueueFunction · 0.85

Calls

no outgoing calls