Functionseedcordv0.13.0
defineGate
Builds a GateGate from a check. The check refuses by throwing a Notice or a Silence and passes by returning. The required context is inferred from ctxctx, so annotate it as narrowly as the fields the check reads. No annotation defaults to GateContextBaseGateContextBase, an agnostic gate that fits every handler.
See also:defineEffectGate, Gated
Name
The gate's name captured as a literal, so a mismatch error can name the gate.
NameNameThe gate's name captured as a literal, so a mismatch error can name the gate.
Ctx
The context the check reads, inferred from the ctxctx annotation.
CtxCtxThe context the check reads, inferred from the ctxctx annotation.