API Reference ServCore v#0.1.0

Copy Markdown View Source

Modules

HTTP server capability with a configurable router module.

Work queue capability with configurable worker module.

Composable macros for building custom routers on top of Elixir Server Core.

Default router implementation. This is used by the demo application.

Behaviour for persisting job state across VM restarts.

Default no-op store. Assigns VM-local monotonic IDs but does not persist. Jobs are lost on VM restart.

Pure helper functions for building standard job-store SQL.

SQLite-backed job store with WAL mode enabled.

Minimal supervision template. Copy this as your Application module when forking the server. Swap router and worker_module for your own.

Telemetry event name constants and emit helpers for Elixir Server Core.

Immutable job record that flows through the queue lifecycle.

Background job worker. Polls the JobQueue every @poll_interval ms, claims the next available job, executes it, and updates its status.

Supervisor that manages a pool of concurrent workers.

Main application supervisor. Configurable via Application.get_env(:servcore, ...).