Help us shape the future of Go! Take the 2026 Go Developer Survey

infrastructure/

directory
v0.0.0-...-b550a2e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: Apache-2.0

Directories

Path Synopsis
billing
gate
Package gate decides whether an organization may reach the commercial surface: licence prices and invoice previews now, subscriptions and invoices later.
Package gate decides whether an organization may reach the commercial surface: licence prices and invoice previews now, subscriptions and invoices later.
money
Package money is how the billing code counts money: in a currency's minor units, never in floats.
Package money is how the billing code counts money: in a currency's minor units, never in floats.
provider
Package provider is the boundary between billing and the payment providers that issue and collect its invoices.
Package provider is the boundary between billing and the payment providers that issue and collect its invoices.
provider/conformance
Package conformance is the contract every provider.Adapter keeps, as a test suite any adapter runs against itself: NOOP, the fake provider, and each real provider against its own sandbox or recordings.
Package conformance is the contract every provider.Adapter keeps, as a test suite any adapter runs against itself: NOOP, the fake provider, and each real provider against its own sandbox or recordings.
provider/fakeprovider
Package fakeprovider is an in-memory payment provider for tests: it pushes, finalizes and reports invoices like a real provider, honours idempotency keys, and lets a test inject faults and act on the provider's side (a payment, a void, a draft deleted, a line edited).
Package fakeprovider is an in-memory payment provider for tests: it pushes, finalizes and reports invoices like a real provider, honours idempotency keys, and lets a test inject faults and act on the provider's side (a payment, a void, a draft deleted, a line edited).
provider/noop
Package noop is the provider of an organization that collects its invoices itself: nothing is pushed, invoices are issued MANUAL and handed off through the handoff queue, and a void is local.
Package noop is the provider of an organization that collects its invoices itself: nothing is pushed, invoices are issued MANUAL and handed off through the handoff queue, and a void is local.
stripe
Package stripe is the Stripe payment provider: it pushes the invoices Kaiten composes to the organization's Stripe account, which issues, presents and collects them, and reads back what Stripe reports.
Package stripe is the Stripe payment provider: it pushes the invoices Kaiten composes to the organization's Stripe account, which issues, presents and collects them, and reads back what Stripe reports.
stripe/stripefake
Package stripefake is an in-process Stripe for tests: an httptest server answering the endpoints the Stripe adapter calls, with Stripe's idempotency semantics, one state per account, a clock of its own and fault controls.
Package stripefake is an in-process Stripe for tests: an httptest server answering the endpoints the Stripe adapter calls, with Stripe's idempotency semantics, one state per account, a clock of its own and fault controls.
Package cdc turns ONE externally delivered CDC message into N independent in-process consumptions.
Package cdc turns ONE externally delivered CDC message into N independent in-process consumptions.
Package connectorhooks is what one connector runs at the moments of its lifecycle, over and above what every connector gets (a schema check, a Vault blob and an activation row).
Package connectorhooks is what one connector runs at the moments of its lifecycle, over and above what every connector gets (a schema check, a Vault blob and an activation row).
pgtime
Package pgtime converts between time.Time and the pgtype timestamp types sqlc generates field types as.
Package pgtime converts between time.Time and the pgtype timestamp types sqlc generates field types as.
Package effectivelookup times the reads of instance_effective_entitlement (§19.1 entitlements_effective_lookup_duration_seconds), by reader: the view is on the report path and on KbK's critical path, so its latency is watched where each reader pays it.
Package effectivelookup times the reads of instance_effective_entitlement (§19.1 entitlements_effective_lookup_duration_seconds), by reader: the view is on the report path and on KbK's critical path, so its latency is watched where each reader pays it.
webhook
Package webhook describes outbox events in the OpenAPI contract.
Package webhook describes outbox events in the OpenAPI contract.
http
api
Package api is Kaiten's HTTP registration layer: the list of which operations exist on which document, and the only place that list lives.
Package api is Kaiten's HTTP registration layer: the list of which operations exist on which document, and the only place that list lives.
graphql/resolver
Package resolver implements the GraphQL resolvers.
Package resolver implements the GraphQL resolvers.
Package inbox provides the incoming-side counterpart to internal/infrastructure/outbox: a record that a given message from a given source has already been processed, so a consumer facing at-least-once delivery (e.g.
Package inbox provides the incoming-side counterpart to internal/infrastructure/outbox: a record that a given message from a given source has already been processed, so a consumer facing at-least-once delivery (e.g.
db
db
Package pgnotify provides a minimal Postgres LISTEN/NOTIFY based fan-out mechanism for propagating in-process events -- initially, cache invalidation -- to every replica of this API, without requiring a shared external cache (Redis et al.) or the heavier Debezium+Dapr outbox/CDC pipeline this codebase already uses for cross-service domain events (see internal/infrastructure/outbox and pkg/debezium).
Package pgnotify provides a minimal Postgres LISTEN/NOTIFY based fan-out mechanism for propagating in-process events -- initially, cache invalidation -- to every replica of this API, without requiring a shared external cache (Redis et al.) or the heavier Debezium+Dapr outbox/CDC pipeline this codebase already uses for cross-service domain events (see internal/infrastructure/outbox and pkg/debezium).
db
Package retention bounds the append-only outbox and inbox transport tables.
Package retention bounds the append-only outbox and inbox transport tables.
db
Package sweep is the scheduler behind every recurring database maintenance pass that runs inside the API process.
Package sweep is the scheduler behind every recurring database maintenance pass that runs inside the API process.
Package turnstile verifies Cloudflare Turnstile tokens: the challenge an anonymous checkout's start passes before anything is written (V32-01, §14.8 rule 1).
Package turnstile verifies Cloudflare Turnstile tokens: the challenge an anonymous checkout's start passes before anything is written (V32-01, §14.8 rule 1).
Package uow provides the transaction boundary every write use case runs its multi-statement work inside.
Package uow provides the transaction boundary every write use case runs its multi-statement work inside.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL