Functioncorev0.2.1
defineGate
Builds a Gate from a check. The check refuses by throwing a Notice or a Silence and passes by returning. The required context is inferred from ctx, so annotate it as narrowly as the fields the check reads. No annotation defaults to GateContextBase, an agnostic gate that fits every handler.
See also:defineEffectGate, the @Gated decorator from your transport package
Name
The gate's name, captured as a literal for mismatch errors.
NameThe gate's name, captured as a literal for mismatch errors.
Ctx
The context the check reads, inferred from the ctx annotation.
CtxThe context the check reads, inferred from the ctx annotation.