Documentation
ΒΆ
Overview ΒΆ
Command smsforwarder-api is the backend for the SMS Forwarder app: it receives SMS uploaded by the phone client, authenticates the user, and fans each message out to that user's configured channels (Telegram). An optional operator admin console runs on a separate (localhost-by-default) address.
Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
internal
|
|
|
admin
Package admin is the operator web console (separate from the public API, and by default bound to localhost).
|
Package admin is the operator web console (separate from the public API, and by default bound to localhost). |
|
api
Package api wires the HTTP endpoints: auth, channel CRUD/test, and SMS upload.
|
Package api wires the HTTP endpoints: auth, channel CRUD/test, and SMS upload. |
|
auth
Package auth handles password hashing and device-token authentication.
|
Package auth handles password hashing and device-token authentication. |
|
channels
Package channels defines the channel Sender abstraction and per-type config handling.
|
Package channels defines the channel Sender abstraction and per-type config handling. |
|
config
Package config loads bootstrap configuration from environment variables.
|
Package config loads bootstrap configuration from environment variables. |
|
forward
Package forward is the delivery engine.
|
Package forward is the delivery engine. |
|
ratelimit
Package ratelimit is a tiny per-user fixed-window limiter (in-memory).
|
Package ratelimit is a tiny per-user fixed-window limiter (in-memory). |
|
store
Package store is the SQLite persistence layer.
|
Package store is the SQLite persistence layer. |
|
tg
Package tg is the embedded shared Telegram bot.
|
Package tg is the embedded shared Telegram bot. |