NewStore wraps a pgx pool. The pool must already have the schema from migrations/015_idempotency_and_send_attempts.sql applied.
(pool *pgxpool.Pool)
| 97 | // NewStore wraps a pgx pool. The pool must already have the schema |
| 98 | // from migrations/015_idempotency_and_send_attempts.sql applied. |
| 99 | func 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 |
no outgoing calls