# `Gust.Leader`

Elects a single leader node and manages leader-only children.

The leader process attempts to acquire a distributed lock in the database.
When the lock is held, the node becomes the leader and starts the configured
leader-only workers under `Gust.LeaderOnlySupervisor`. If the lock is lost, the
leader-only workers are terminated and the node returns to follower mode.

# `attempt_lock`

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `handle_continue`

# `init`

# `start_link`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
