Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mnexa-AI/e2a
/ NewStore
Function
NewStore
internal/usage/store.go:37–39 ·
view source on GitHub ↗
(pool *pgxpool.Pool)
Source
from the content-addressed store, hash-verified
35
}
36
37
func
NewStore(pool *pgxpool.Pool) *Store {
38
return
&Store{pool: pool}
39
}
40
41
func
(s *Store) RecordUsageEvent(ctx context.Context, event *UsageEvent) error {
42
if
event.ID ==
""
{
Callers
13
setupLimitsUser
Function · 0.92
TestServer
Function · 0.92
NewEventsAPIHarness
Function · 0.92
StartContractServer
Function · 0.92
TestUsageSummaryIncrementAndGet
Function · 0.92
TestLiveUsageTracker_AlwaysAllows
Function · 0.92
TestLiveUsageTracker_SystemClassNotMetered
Function · 0.92
TestRelay_RcptTo_Rejects552WhenOverCap
Function · 0.92
TestRelay_RcptTo_AcceptsWhenUnderCap
Function · 0.92
TestBearer_OAuthToken_ProviderNotWired
Function · 0.92
newConsentFixture
Function · 0.92
setupAPIWithLimits
Function · 0.92
Calls
no outgoing calls
Tested by
10
setupLimitsUser
Function · 0.74
TestServer
Function · 0.74
TestUsageSummaryIncrementAndGet
Function · 0.74
TestLiveUsageTracker_AlwaysAllows
Function · 0.74
TestLiveUsageTracker_SystemClassNotMetered
Function · 0.74
TestRelay_RcptTo_Rejects552WhenOverCap
Function · 0.74
TestRelay_RcptTo_AcceptsWhenUnderCap
Function · 0.74
TestBearer_OAuthToken_ProviderNotWired
Function · 0.74
newConsentFixture
Function · 0.74
setupAPIWithLimits
Function · 0.74