API Reference Legendary v2.12.0

Modules

Hook into Pow Controllers to provide additional framework feature. In particular, we disconnect any active live views when a user logs out. This will cause the live view to re-connect with the new session environment.

Legendary.Auth keeps the contexts that define your domain and business logic.

Manages the cache in Mnesia for Pow. This allows users to remain logged in even if their traffic is hitting different nodes in the cluster.

Functions for working with roles on users, such as testing whether a user has a role.

The baseline user schema module.

Custom admin login for user records.

The entrypoint for defining your web interface, such as controllers, views, channels and so on.

Utility functions for working with users and roles.

A plug that returns 403 unauthorized if the user is not an admin. Used to block out logged-in-only routes.

Mailer module for Pow which links it to our well-styled defaults.

Legendary.Core keeps the contexts that define your domain and business logic.

Generic additional utility functions for Maps.

Router module that brings in core framework routes, such as the feature flag admin interface. Can be included like

A shareable connection pool. We use this so that all the apps connecting to one database can use on connection pool, even if they have different repos.

The core library for email in the application. The functions here can be composed in the application to send different emails.

The base mailer for email for the application.

The entrypoint for defining your web interface, such as controllers, views, channels and so on.

HTML helpers for emails.

Conveniences for translating and building error messages.

A module providing Internationalization with a gettext-based API.

HTML helpers for our styled (Tailwind) forms.

Module with named helpers generated from Legendary.CoreWeb.Router.

Collects metrics for the application and allows them to be transmitted using the Telemetry framework.

The internationalization and strings module. Keeps strings outside the codebase and allows them to be replaced on a per locale basis by editing yml files.

Parent module for all Legendary framework mix tasks. Provides some helpers used by tasks and generators.

Mix Tasks

Mix task to create an admin user from the command line.