Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
coverage
command
Command coverage writes docs/coverage.md: which of WAHA's operations this edge implements and which answer 501, read from the routes the server actually registers.
|
Command coverage writes docs/coverage.md: which of WAHA's operations this edge implements and which answer 501, read from the routes the server actually registers. |
|
wamux-http
command
Command wamux-http serves WAHA's HTTP API on top of a wamux daemon.
|
Command wamux-http serves WAHA's HTTP API on top of a wamux daemon. |
|
Package contract embeds the pinned WAHA OpenAPI document: the list of operations the edge answers, and the schemas its contract tests check responses against.
|
Package contract embeds the pinned WAHA OpenAPI document: the list of operations the edge answers, and the schemas its contract tests check responses against. |
|
internal
|
|
|
app
Package app wires the edge together.
|
Package app wires the edge together. |
|
config
Package config reads the edge's configuration from the environment.
|
Package config reads the edge's configuration from the environment. |
|
core
Package core is the only package that speaks gRPC to the wamux daemon.
|
Package core is the only package that speaks gRPC to the wamux daemon. |
|
dashboard
Package dashboard serves the web panel at /dashboard: pair sessions, start and stop them, edit their webhooks and metadata, and manage API keys.
|
Package dashboard serves the web panel at /dashboard: pair sessions, start and stop them, edit their webhooks and metadata, and manage API keys. |
|
events
Package events publishes WAHA events: it builds the envelope, picks the webhooks that want the event and appends both to the store in one transaction.
|
Package events publishes WAHA events: it builds the envelope, picks the webhooks that want the event and appends both to the store in one transaction. |
|
fakecore
Package fakecore is an in-process wamux daemon on a Unix socket, for tests.
|
Package fakecore is an in-process wamux daemon on a Unix socket, for tests. |
|
httpapi
Package httpapi serves WAHA's HTTP API.
|
Package httpapi serves WAHA's HTTP API. |
|
ingest
Package ingest turns the core's events for a session into WAHA: stored messages, chats and contacts, and published WAHA events.
|
Package ingest turns the core's events for a session into WAHA: stored messages, chats and contacts, and published WAHA events. |
|
media
Package media moves files in and out of WhatsApp for the edge: it fetches the URLs clients send (behind an SSRF guard), converts voice and video with ffmpeg, and serves received media under /api/files, downloading it from the core on first request.
|
Package media moves files in and out of WhatsApp for the edge: it fetches the URLs clients send (behind an SSRF guard), converts voice and video with ffmpeg, and serves received media under /api/files, downloading it from the core on first request. |
|
sessions
Package sessions runs WAHA sessions on wamux accounts.
|
Package sessions runs WAHA sessions on wamux accounts. |
|
store
Package store is the edge's persistence, behind the Store interface.
|
Package store is the edge's persistence, behind the Store interface. |
|
store/sqlite
Package sqlite implements store.Store on SQLite (modernc.org/sqlite, no cgo).
|
Package sqlite implements store.Store on SQLite (modernc.org/sqlite, no cgo). |
|
store/storetest
Package storetest is the conformance suite every store engine must pass.
|
Package storetest is the conformance suite every store engine must pass. |
|
testenv
Package testenv runs the whole edge for integration tests: a fake core on a Unix socket, a SQLite store in a temp dir, the background loops and the HTTP API on an httptest server.
|
Package testenv runs the whole edge for integration tests: a fake core on a Unix socket, a SQLite store in a temp dir, the background loops and the HTTP API on an httptest server. |
|
waha
Package waha holds WAHA's data model: ids, message and event payloads.
|
Package waha holds WAHA's data model: ids, message and event payloads. |
|
webhooks
Package webhooks delivers the outbox: every process claims due deliveries from the store, sends them the way WAHA does (headers, HMAC, retries) and records the outcome.
|
Package webhooks delivers the outbox: every process claims due deliveries from the store, sends them the way WAHA does (headers, HMAC, retries) and records the outcome. |
Click to show internal directories.
Click to hide internal directories.