Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
edgeauth
Package edgeauth authenticates Cloudflare edge-subscribe Workers.
|
Package edgeauth authenticates Cloudflare edge-subscribe Workers. |
|
eventbus
Package eventbus is the domain-event bus riding the asynq message queue (ADR-001 step-6 preparation).
|
Package eventbus is the domain-event bus riding the asynq message queue (ADR-001 step-6 preparation). |
|
module/billing
Package billing is the facade of the billing module.
|
Package billing is the facade of the billing module. |
|
module/billing/entity/wallet
Package wallet holds the billing domain's money entities: the wallet row (the single source of truth for balance/gift/commission since migration 02144) and withdrawal records (ADR-001 step 5).
|
Package wallet holds the billing domain's money entities: the wallet row (the single source of truth for balance/gift/commission since migration 02144) and withdrawal records (ADR-001 step 5). |
|
module/billing/internal/activation
Package activation implements the billing-domain stages of the paid-order activation saga: the recharge wallet credit, the referral commission and the final settlement.
|
Package activation implements the billing-domain stages of the paid-order activation saga: the recharge wallet credit, the referral commission and the final settlement. |
|
module/billing/internal/adminorder
Package adminorder implements the admin-side order management subdomain of the billing module.
|
Package adminorder implements the admin-side order management subdomain of the billing module. |
|
module/billing/internal/adminpayment
Package adminpayment implements the payment-method management subdomain of the billing module.
|
Package adminpayment implements the payment-method management subdomain of the billing module. |
|
module/billing/internal/callbacks
Package callbacks implements the payment gateway callback subdomain of the billing module: it authenticates EPay/Stripe/Alipay/Cryptomus notifications, verifies them against the order's immutable payment expectation, re-confirms with the gateway and settles the payment.
|
Package callbacks implements the payment gateway callback subdomain of the billing module: it authenticates EPay/Stripe/Alipay/Cryptomus notifications, verifies them against the order's immutable payment expectation, re-confirms with the gateway and settles the payment. |
|
module/billing/internal/checkout
Package checkout implements the user-facing money flows of the billing module: purchase, renewal, traffic reset, recharge, order preview and close.
|
Package checkout implements the user-facing money flows of the billing module: purchase, renewal, traffic reset, recharge, order preview and close. |
|
module/billing/internal/coupon
Package coupon implements the coupon management subdomain of the billing module.
|
Package coupon implements the coupon management subdomain of the billing module. |
|
module/billing/internal/portal
Package portal implements the guest storefront subdomain of the billing module: guest pre-orders, gateway/balance checkout, order status polling with session exchange, and the public plan/payment listings.
|
Package portal implements the guest storefront subdomain of the billing module: guest pre-orders, gateway/balance checkout, order status polling with session exchange, and the public plan/payment listings. |
|
module/billing/internal/settle
Package settle holds the one settlement primitive shared by the checkout and payment-callback subdomains: marking a gateway-verified payment as paid and enqueueing activation.
|
Package settle holds the one settlement primitive shared by the checkout and payment-callback subdomains: marking a gateway-verified payment as paid and enqueueing activation. |
|
module/billing/internal/userorder
Package userorder implements the user-facing order query subdomain of the billing module (the checkout flows join as migration proceeds).
|
Package userorder implements the user-facing order query subdomain of the billing module (the checkout flows join as migration proceeds). |
|
module/billing/internal/v2
Package v2 implements the V2 order orchestration subdomain of the billing module: idempotent create-and-checkout, guest checkout capabilities and the SSE event-stream tickets.
|
Package v2 implements the V2 order orchestration subdomain of the billing module: idempotent create-and-checkout, guest checkout capabilities and the SSE event-stream tickets. |
|
module/billing/internal/wallet
Package wallet implements the user-facing wallet subdomain of the billing module: commission withdrawal, balance/commission statements and the affiliate earnings overview.
|
Package wallet implements the user-facing wallet subdomain of the billing module: commission withdrawal, balance/commission statements and the affiliate earnings overview. |
|
module/identity
Package identity is the facade of the identity module (accounts, auth methods, devices; the authentication flows join as migration proceeds).
|
Package identity is the facade of the identity module (accounts, auth methods, devices; the authentication flows join as migration proceeds). |
|
module/identity/internal/adminuser
Package adminuser implements the admin-side account management subdomain of the identity module: user CRUD, auth methods, devices and login logs.
|
Package adminuser implements the admin-side account management subdomain of the identity module: user CRUD, auth methods, devices and login logs. |
|
module/identity/internal/authmethodadmin
Service assembly for the admin-side authentication-method subdomain of the identity module: method configuration, sender platforms and test sends.
|
Service assembly for the admin-side authentication-method subdomain of the identity module: method configuration, sender platforms and test sends. |
|
module/identity/internal/authn
Service assembly for the authentication subdomain.
|
Service assembly for the authentication subdomain. |
|
module/identity/internal/authn/registerpolicy
Package registerpolicy enforces the administrator-configured account policies shared by every authentication and registration path.
|
Package registerpolicy enforces the administrator-configured account policies shared by every authentication and registration path. |
|
module/identity/internal/profile
Package profile implements the self-service identity subdomain of the identity module: account info, credentials, third-party bindings, devices and notification preferences.
|
Package profile implements the self-service identity subdomain of the identity module: account info, credentials, third-party bindings, devices and notification preferences. |
|
module/identity/internal/repo
Package repo holds the identity module's repository implementations: the user account rows, auth methods, devices and the cross-domain cache facade (ADR-001 step-6 preparation).
|
Package repo holds the identity module's repository implementations: the user account rows, auth methods, devices and the cross-domain cache facade (ADR-001 step-6 preparation). |
|
module/identity/internal/verifycode
Service assembly for the verification-code subdomain: issuing and pre-checking the email/SMS codes that gate registration and account mutations.
|
Service assembly for the verification-code subdomain: issuing and pre-checking the email/SMS codes that gate registration and account mutations. |
|
module/network
Package network is the facade of the network module: admin-side server and node management, the node-facing server API and the edge client manifest.
|
Package network is the facade of the network module: admin-side server and node management, the node-facing server API and the edge client manifest. |
|
module/network/internal/adminserver
Service assembly for the admin-side server and node management subdomain of the network module.
|
Service assembly for the admin-side server and node management subdomain of the network module. |
|
module/network/internal/edge
Service assembly for the edge subdomain of the network module: the token- authenticated client manifest.
|
Service assembly for the edge subdomain of the network module: the token- authenticated client manifest. |
|
module/network/internal/serverapi
Service assembly for the node-facing server API subdomain of the network module: config pulls, user lists, status/traffic pushes.
|
Service assembly for the node-facing server API subdomain of the network module: config pulls, user lists, status/traffic pushes. |
|
module/notification
Package notification is the facade of the notification module.
|
Package notification is the facade of the notification module. |
|
module/notification/entity/telegramtopic
Package telegramtopic maps forum topics in the administrators' Telegram group to what they carry.
|
Package telegramtopic maps forum topics in the administrators' Telegram group to what they carry. |
|
module/notification/internal/telegram
The templates in this file are MarkdownV2 (bold is *single asterisks*, italic is _underscores_).
|
The templates in this file are MarkdownV2 (bold is *single asterisks*, italic is _underscores_). |
|
module/platform
Package platform is the facade of the platform module (shared-kernel concerns: audit/message logs and their retention settings; system configuration joins as migration proceeds).
|
Package platform is the facade of the platform module (shared-kernel concerns: audit/message logs and their retention settings; system configuration joins as migration proceeds). |
|
module/platform/entity/outbox
Package outbox holds the generic domain-event outbox row (ADR-001 step-6 preparation): appended in the owning domain's transaction, published onto the asynq queue by the dispatch pump, consumed idempotently via the inbox.
|
Package outbox holds the generic domain-event outbox row (ADR-001 step-6 preparation): appended in the owning domain's transaction, published onto the asynq queue by the dispatch pump, consumed idempotently via the inbox. |
|
module/platform/internal/auditlog
Package auditlog implements the audit/message log subdomain of the platform module: filtered views over the system log, message log listing and the log retention settings.
|
Package auditlog implements the audit/message log subdomain of the platform module: filtered views over the system log, message log listing and the log retention settings. |
|
module/platform/internal/dashboard
Package dashboard implements the admin console subdomain of the platform module: cross-domain reporting aggregates.
|
Package dashboard implements the admin console subdomain of the platform module: cross-domain reporting aggregates. |
|
module/platform/internal/publicinfo
Service assembly for the public-info subdomain: unauthenticated site-level reads (global configuration, ToS/privacy, aggregate stats, client downloads, liveness).
|
Service assembly for the public-info subdomain: unauthenticated site-level reads (global configuration, ToS/privacy, aggregate stats, client downloads, liveness). |
|
module/platform/internal/systemsetting
Package systemsetting implements the system configuration subdomain of the platform module.
|
Package systemsetting implements the system configuration subdomain of the platform module. |
|
module/platform/internal/tool
Service assembly for the tool subdomain of the platform module: system log tail, version info, IP geolocation and process restart.
|
Service assembly for the tool subdomain of the platform module: system log tail, version info, IP geolocation and process restart. |
|
module/subscription
Package subscription is the facade of the subscription module: plan and group management plus the public storefront listings (subscription delivery joins as migration proceeds).
|
Package subscription is the facade of the subscription module: plan and group management plus the public storefront listings (subscription delivery joins as migration proceeds). |
|
module/subscription/entity/usersub
Package usersub holds the subscription domain's user-subscription entities (ADR-001 step 5: entity packages follow table ownership).
|
Package usersub holds the subscription domain's user-subscription entities (ADR-001 step 5: entity packages follow table ownership). |
|
module/subscription/internal/application
Service assembly for the client-application subdomain of the subscription module: managing the subscribe clients and previewing their delivery templates.
|
Service assembly for the client-application subdomain of the subscription module: managing the subscribe clients and previewing their delivery templates. |
|
module/subscription/internal/delivery
Package delivery implements the subscription delivery subdomain of the subscription module: token-authenticated rendering of client configs via the adapter, with notice placeholders for expired/exhausted subscriptions.
|
Package delivery implements the subscription delivery subdomain of the subscription module: token-authenticated rendering of client configs via the adapter, with notice placeholders for expired/exhausted subscriptions. |
|
module/subscription/internal/fulfillment
Package fulfillment applies a paid order's business effect: creating, renewing or traffic-resetting the user subscription in the fulfillment transaction, idempotent via the inbox marker.
|
Package fulfillment applies a paid order's business effect: creating, renewing or traffic-resetting the user subscription in the fulfillment transaction, idempotent via the inbox marker. |
|
module/subscription/internal/plan
Package plan implements the subscription plan management subdomain of the subscription module: plan and group CRUD, ordering and token resets.
|
Package plan implements the subscription plan management subdomain of the subscription module: plan and group CRUD, ordering and token resets. |
|
module/subscription/internal/quotatask
Package quotatask processes the admin-scheduled quota grants: extending subscription time and crediting gift money for a scope of subscriptions.
|
Package quotatask processes the admin-scheduled quota grants: extending subscription time and crediting gift money for a scope of subscriptions. |
|
module/subscription/internal/selfsub
Package selfsub implements the user self-service subscription management of the subscription module: viewing, token reset, notes, and the two-phase cancellation with its billing refund.
|
Package selfsub implements the user self-service subscription management of the subscription module: viewing, token reset, notes, and the two-phase cancellation with its billing refund. |
|
module/subscription/internal/storefront
Package storefront implements the public subscription listings of the subscription module.
|
Package storefront implements the public subscription listings of the subscription module. |
|
module/subscription/internal/sweep
Package sweep implements the subscription lifecycle sweep: marking traffic-exceeded and expired subscriptions finished, then firing the retryable side effects (owner notification, cache invalidation).
|
Package sweep implements the subscription lifecycle sweep: marking traffic-exceeded and expired subscriptions finished, then firing the retryable side effects (owner notification, cache invalidation). |
|
module/subscription/internal/trial
Package trial grants the registration trial subscription.
|
Package trial grants the registration trial subscription. |
|
module/subscription/internal/usersub
Package usersub implements the admin-side user subscription management of the subscription module.
|
Package usersub implements the admin-side user subscription management of the subscription module. |
|
module/support
Package support is the facade of the support module (announcements and, as migration proceeds, documents, tickets and ads).
|
Package support is the facade of the support module (announcements and, as migration proceeds, documents, tickets and ads). |
|
module/support/internal/ads
Package ads implements the ads subdomain of the support module.
|
Package ads implements the ads subdomain of the support module. |
|
module/support/internal/announcement
Package announcement implements the announcement subdomain of the support module.
|
Package announcement implements the announcement subdomain of the support module. |
|
module/support/internal/document
Package document implements the document subdomain of the support module.
|
Package document implements the document subdomain of the support module. |
|
module/support/internal/marketing
Package marketing implements the marketing subdomain of the support module (batch email campaigns and quota gift tasks).
|
Package marketing implements the marketing subdomain of the support module (batch email campaigns and quota gift tasks). |
|
module/support/internal/ticket
Package ticket implements the ticket subdomain of the support module.
|
Package ticket implements the ticket subdomain of the support module. |
|
pkg
|
|
|
asynqx
Package asynqx carries OpenTelemetry trace context across the asynq boundary.
|
Package asynqx carries OpenTelemetry trace context across the asynq boundary. |
|
deduction
Package deduction provides functionality for calculating remaining amounts in subscription billing systems, supporting various time units and traffic-based calculations.
|
Package deduction provides functionality for calculating remaining amounts in subscription billing systems, supporting various time units and traffic-based calculations. |
|
payment/cryptomus
Package cryptomus implements the Cryptomus crypto-payment gateway protocol: invoice creation, invoice lookup and webhook signature verification.
|
Package cryptomus implements the Cryptomus crypto-payment gateway protocol: invoice creation, invoice lookup and webhook signature verification. |
|
platform
Package platform defines provider metadata shared by payment and messaging integrations.
|
Package platform defines provider metadata shared by payment and messaging integrations. |
|
telegramsecret
Package telegramsecret derives the webhook secret that Telegram echoes back in the X-Telegram-Bot-Api-Secret-Token header of every webhook call.
|
Package telegramsecret derives the webhook secret that Telegram echoes back in the X-Telegram-Bot-Api-Secret-Token header of every webhook call. |
|
timeutil
Package timeutil provides centralized timezone handling for the application.
|
Package timeutil provides centralized timezone handling for the application. |
|
tracectx
Package tracectx provides trace-context access without depending on an application layer.
|
Package tracectx provides trace-context access without depending on an application layer. |
|
logic/events
Package events hosts the queue shells of the domain-event bus: the publish pump moving outbox rows onto the asynq broker, and the delivery worker running subscribers.
|
Package events hosts the queue shells of the domain-event bus: the publish pump moving outbox rows onto the asynq broker, and the delivery worker running subscribers. |
|
logic/order
Package order hosts the queue shell of the paid-order activation saga.
|
Package order hosts the queue shell of the paid-order activation saga. |
|
tools
|
|
|
mysql2postgres
command
|
Click to show internal directories.
Click to hide internal directories.

