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

Function NewStorage

internal/oauth/oauth.go:69–71  ·  view source on GitHub ↗

NewStorage returns a Storage bound to the given pool. Caller is responsible for the pool's lifecycle; this struct doesn't own it.

(pool *pgxpool.Pool)

Source from the content-addressed store, hash-verified

67// NewStorage returns a Storage bound to the given pool. Caller is
68// responsible for the pool's lifecycle; this struct doesn't own it.
69func NewStorage(pool *pgxpool.Pool) *Storage {
70 return &Storage{pool: pool}
71}
72
73// Pool exposes the underlying pgxpool. Reserved for callers that need
74// the raw pool — for example, opening a transaction that this package

Callers 8

setupFunction · 0.92
newProviderFixtureFunction · 0.92
bareDiscoveryServerFunction · 0.92
newConsentFixtureFunction · 0.92
newDCRServerFunction · 0.92
setupOAuthAPIFunction · 0.92
mainFunction · 0.92

Calls

no outgoing calls

Tested by 7

setupFunction · 0.74
newProviderFixtureFunction · 0.74
bareDiscoveryServerFunction · 0.74
newConsentFixtureFunction · 0.74
newDCRServerFunction · 0.74
setupOAuthAPIFunction · 0.74