Directories
¶
| Path | Synopsis |
|---|---|
|
Package devicesocket keeps the WebSocket connections of signed-in client devices.
|
Package devicesocket keeps the WebSocket connections of signed-in client devices. |
|
http
|
|
|
middleware
Package middleware holds the Hertz middleware of the HTTP API: tracing, request logging and request metadata, CORS, session authentication and the administrator guard, the device transport envelope and the payment callback lookup.
|
Package middleware holds the Hertz middleware of the HTTP API: tracing, request logging and request metadata, CORS, session authentication and the administrator guard, the device transport envelope and the payment callback lookup. |
|
routes
Package routes is the URL table of the HTTP API: it registers every route with its middleware and hands each handler its module's facade.
|
Package routes is the URL table of the HTTP API: it registers every route with its middleware and hands each handler its module's facade. |
|
server
Package httpserver builds the Hertz server of the HTTP API: the middleware every request passes (tracing, request logging, CORS), the routes of package routes, and the Telegram webhook and payment notify handlers that their modules register.
|
Package httpserver builds the Hertz server of the HTTP API: the middleware every request passes (tracing, request logging, CORS), the routes of package routes, and the Telegram webhook and payment notify handlers that their modules register. |
|
setup
Package setup serves the first-installation wizard.
|
Package setup serves the first-installation wizard. |
|
validation
Package validation owns request-DTO validation independently from the application composition root.
|
Package validation owns request-DTO validation independently from the application composition root. |
|
Package task is the application's asynq consumer: it registers the handler of every task type and runs them behind the trace middleware, with one failure log line per attempt and the retry policy of the scheduled tasks.
|
Package task is the application's asynq consumer: it registers the handler of every task type and runs them behind the trace middleware, with one failure log line per attempt and the retry policy of the scheduled tasks. |
|
email
Package email holds the queue handlers that send email: single notifications (verification codes, expiry, traffic and maintenance notices, custom mail) and the marketing campaigns administrators run in batches, together with the workers that pace a campaign and record its progress.
|
Package email holds the queue handlers that send email: single notifications (verification codes, expiry, traffic and maintenance notices, custom mail) and the marketing campaigns administrators run in batches, together with the workers that pace a campaign and record its progress. |
|
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. |
|
maintenance
Package maintenance holds the queue handlers of the maintenance tasks: the quota grants administrators schedule and the daily exchange-rate refresh.
|
Package maintenance holds the queue handlers of the maintenance tasks: the quota grants administrators schedule and the daily exchange-rate refresh. |
|
order
Package order holds the queue handlers of billing's order tasks: the activation of paid orders, the deferred close of unpaid ones, the paid and pending order reconcilers, the order-event outbox publication and retention, and the daily order report.
|
Package order holds the queue handlers of billing's order tasks: the activation of paid orders, the deferred close of unpaid ones, the paid and pending order reconcilers, the order-event outbox publication and retention, and the daily order report. |
|
sms
Package sms holds the queue handler that sends verification-code text messages through the configured provider and audits every attempt.
|
Package sms holds the queue handler that sends verification-code text messages through the configured provider and audits every attempt. |
|
subscription
Package subscription holds the queue handlers of the scheduled subscription tasks: the lifecycle sweep and the pre-expiry reminder.
|
Package subscription holds the queue handlers of the scheduled subscription tasks: the lifecycle sweep and the pre-expiry reminder. |
|
tasklock
Package tasklock keeps two runs of one periodic task from overlapping, across replicas, with a Redis lock that only its owner may release or extend.
|
Package tasklock keeps two runs of one periodic task from overlapping, across replicas, with a Redis lock that only its owner may release or extend. |
|
traffic
Package traffic holds the queue handlers of the traffic tasks: flushing the aggregated node traffic, the calendar traffic reset, the daily traffic statistics and the log retention.
|
Package traffic holds the queue handlers of the traffic tasks: flushing the aggregated node traffic, the calendar traffic reset, the daily traffic statistics and the log retention. |
Click to show internal directories.
Click to hide internal directories.