Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
openpay_v1
Package openpay_v1 is a reverse proxy.
|
Package openpay_v1 is a reverse proxy. |
|
cmd
|
|
|
worker
Package worker runs OpenPay's background jobs: the outbox drainer, the idempotency sweeper, the chart-of-accounts bootstrap and the ledger invariant checker, and the hold and wallet expiry sweepers; later the payment status poller and settlement ingest.
|
Package worker runs OpenPay's background jobs: the outbox drainer, the idempotency sweeper, the chart-of-accounts bootstrap and the ledger invariant checker, and the hold and wallet expiry sweepers; later the payment status poller and settlement ingest. |
|
internal
|
|
|
appcontext
Package appcontext carries the identity of whoever made the current request.
|
Package appcontext carries the identity of whoever made the current request. |
|
auth
Package auth turns request headers into an authenticated caller.
|
Package auth turns request headers into an authenticated caller. |
|
health
Package health serves the liveness and readiness probes.
|
Package health serves the liveness and readiness probes. |
|
ledger
Package ledger holds the chart of accounts: what accounts exist, what they are called, and how they are created.
|
Package ledger holds the chart of accounts: what accounts exist, what they are called, and how they are created. |
|
middleware
Package middleware populates request context and normalizes errors at the two edges OpenPay serves: the gRPC server and the grpc-gateway HTTP mux.
|
Package middleware populates request context and normalizes errors at the two edges OpenPay serves: the gRPC server and the grpc-gateway HTTP mux. |
|
opsmetrics
Package opsmetrics publishes the operational gauges that dashboards and alerts are built on: payment success rate per provider, stuck payments, webhook backlog and lag, and hold leakage (plan.md Phase 10).
|
Package opsmetrics publishes the operational gauges that dashboards and alerts are built on: payment success rate per provider, stuck payments, webhook backlog and lag, and hold leakage (plan.md Phase 10). |
|
order
Package order records purchases and settles them — from wallets, from a card, or both at once (split tender).
|
Package order records purchases and settles them — from wallets, from a card, or both at once (split tender). |
|
outbox
Package outbox publishes domain events that were recorded alongside the changes that caused them (plan.md D5).
|
Package outbox publishes domain events that were recorded alongside the changes that caused them (plan.md D5). |
|
payment
Package payment collects money through PSPs and applies it: the state machine, the provider calls, webhook ingestion and the jobs that recover from missed webhooks.
|
Package payment collects money through PSPs and applies it: the state machine, the provider calls, webhook ingestion and the jobs that recover from missed webhooks. |
|
provider
Package provider is the boundary between OpenPay and the PSPs that actually move money.
|
Package provider is the boundary between OpenPay and the PSPs that actually move money. |
|
provider/mock
Package mock is a payment provider OpenPay controls completely.
|
Package mock is a payment provider OpenPay controls completely. |
|
provider/razorpay
Package razorpay is the Razorpay provider.
|
Package razorpay is the Razorpay provider. |
|
ratelimit
Package ratelimit caps how fast each product backend may call OpenPay.
|
Package ratelimit caps how fast each product backend may call OpenPay. |
|
recon
Package recon proves that what a PSP says happened matches what our ledger says happened (plan.md phase 8).
|
Package recon proves that what a PSP says happened matches what our ledger says happened (plan.md phase 8). |
|
telemetry
Package telemetry wires OpenTelemetry: traces and metrics exported over OTLP.
|
Package telemetry wires OpenTelemetry: traces and metrics exported over OTLP. |
|
testsupport
Package testsupport gives integration tests outside the repository package a real database.
|
Package testsupport gives integration tests outside the repository package a real database. |
|
wallet
Package wallet moves money in and out of customer wallets.
|
Package wallet moves money in and out of customer wallets. |
|
withdrawal
Package withdrawal cashes withdrawable wallets out to a customer's bank account or UPI id (plan.md phase 9).
|
Package withdrawal cashes withdrawable wallets out to a customer's bank account or UPI id (plan.md phase 9). |
|
pkg
|
|
|
apperrors
Package apperrors defines OpenPay's error taxonomy.
|
Package apperrors defines OpenPay's error taxonomy. |
|
client
Package client is how a product backend talks to OpenPay over gRPC.
|
Package client is how a product backend talks to OpenPay over gRPC. |
|
fieldcrypt
Package fieldcrypt encrypts individual sensitive fields — bank account numbers — before they reach the database, so a database dump or a backup does not hand over customers' accounts.
|
Package fieldcrypt encrypts individual sensitive fields — bank account numbers — before they reach the database, so a database dump or a backup does not hand over customers' accounts. |
|
ids
Package ids generates the prefixed, time-sortable identifiers OpenPay exposes over its API.
|
Package ids generates the prefixed, time-sortable identifiers OpenPay exposes over its API. |
|
money
Package money represents monetary values as integer minor units with an explicit currency.
|
Package money represents monetary values as integer minor units with an explicit currency. |
|
secrets
Package secrets generates and verifies service credential secrets.
|
Package secrets generates and verifies service credential secrets. |
Click to show internal directories.
Click to hide internal directories.