MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / UsageTracker

Interface UsageTracker

internal/usage/usage.go:9–12  ·  view source on GitHub ↗

UsageTracker records usage events. Always allows the action (no quota enforcement).

Source from the content-addressed store, hash-verified

7
8// UsageTracker records usage events. Always allows the action (no quota enforcement).
9type UsageTracker interface {
10 // RecordAndCheck records a usage event. Always returns true.
11 RecordAndCheck(ctx context.Context, userID, agentID, domain, direction string) (allowed bool, err error)
12}
13
14// LiveUsageTracker is the real implementation backed by the billing store.
15type LiveUsageTracker struct {

Callers 7

autoApproveMethod · 0.65
deliverToAgentMethod · 0.65
DeliverOutboundMethod · 0.65
magicApproveMethod · 0.65
ApprovePendingCoreMethod · 0.65

Implementers 2

LiveUsageTrackerinternal/usage/usage.go
NoopUsageTrackerinternal/usage/usage.go

Calls

no outgoing calls

Tested by

no test coverage detected