Triplex v1.1.2 Triplex.Plug View Source

This module have some basic functions for our triplex plugs.

The plugs we have for now are:

You can also check Triplex.PlugConfig for the config options you have for each plug.

Link to this section Summary

Functions

Ensure the tenant is loaded, and if not, halts the conn

Puts the given tenant as an assign on the given conn, but only if the tenant is not reserved

Link to this section Functions

Link to this function ensure_tenant(conn, config) View Source

Ensure the tenant is loaded, and if not, halts the conn.

See Triplex.PlugConfig to the allowed config flags.

Link to this function put_tenant(conn, tenant, config) View Source

Puts the given tenant as an assign on the given conn, but only if the tenant is not reserved.

See Triplex.PlugConfig to the allowed config flags.