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

Function NewStore

internal/idempotency/store.go:99–101  ·  view source on GitHub ↗

NewStore wraps a pgx pool. The pool must already have the schema from migrations/015_idempotency_and_send_attempts.sql applied.

(pool *pgxpool.Pool)

Source from the content-addressed store, hash-verified

97// NewStore wraps a pgx pool. The pool must already have the schema
98// from migrations/015_idempotency_and_send_attempts.sql applied.
99func NewStore(pool *pgxpool.Pool) *Store {
100 return &Store{pool: pool}
101}
102
103// HashBody returns the sha256 hex of the raw request body. Exposed so
104// callers (the HTTP layer) can compute it once from the bytes they

Callers 11

newStoreAndUserFunction · 0.92
TestServerFunction · 0.92
NewEventsAPIHarnessFunction · 0.92
StartContractServerFunction · 0.92
setupAPIFunction · 0.92
setupAPIWithSMTPFunction · 0.92
newAPIWithIdempotencyFunction · 0.92
newConsentFixtureFunction · 0.92
mainFunction · 0.92

Calls

no outgoing calls

Tested by 8

newStoreAndUserFunction · 0.74
TestServerFunction · 0.74
setupAPIFunction · 0.74
setupAPIWithSMTPFunction · 0.74
newAPIWithIdempotencyFunction · 0.74
newConsentFixtureFunction · 0.74