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:
Triplex.ParamPlug
- loads the tenant from a body or query paramTriplex.SessionPlug
- loads the tenant from a session paramTriplex.SubdomainPlug
- loads the tenant from the url subdomainTriplex.EnsurePlug
- ensures the current tenant is loaded and halts if not
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
Ensure the tenant is loaded, and if not, halts the conn
.
See Triplex.PlugConfig
to the allowed config
flags.
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.