Go to file
2026-04-09 13:50:55 +08:00
cmd/billing-service feat(billing): bootstrap billing service 2026-04-09 06:20:30 +08:00
internal feat(rating): add pricing-backed traffic billing 2026-04-09 13:50:55 +08:00
testdata/postgres feat(rating): add pricing-backed traffic billing 2026-04-09 13:50:55 +08:00
docker-compose.postgres.yml feat(billing): bootstrap billing service 2026-04-09 06:20:30 +08:00
go.mod feat(billing): bootstrap billing service 2026-04-09 06:20:30 +08:00
go.sum feat(billing): bootstrap billing service 2026-04-09 06:20:30 +08:00
README.md feat(billing): bootstrap billing service 2026-04-09 06:20:30 +08:00

billing-service

billing-service is the v1 minute-delta and replay-safe writer for the Cloud Network Billing & Control Plane.

It pulls the latest normalized snapshot from xray-exporter, computes deltas from cumulative counters, and writes idempotent usage and billing facts into the existing accounts.svc.plus PostgreSQL schema.

Endpoints

  • POST /v1/jobs/collect-and-rate
  • POST /v1/jobs/reconcile
  • GET /healthz
  • GET /v1/status