Documentation
¶
Overview ¶
Package hookgate is the hook gate as the nova-tools tools meet it (docs/SPEC-HOOK.md, the gate in every tool; tla/Hook.tla, GateMeansHooked): the hook module's Gate over the bus store a verb already opened, and the gate's answer as the verb's one result. Every verb that sends, reads or takes work as an identity calls Gate before it acts and acts only on nil.
Index ¶
Constants ¶
const Reason = "unhooked"
Reason is the stable code of a gate's no, a result's reason (tool.Out.Reasons).
Variables ¶
var ErrNoRecord = errors.New("this bus store keeps no hook record (it is no Redis store), so nothing runs: fail closed")
ErrNoRecord is the refusal of a bus store that is no Redis: no hook record can be read from it, so nothing runs.
Functions ¶
func Gate ¶
Gate is the gate for w over the bus store st: nil when w.Name is hooked in, every push of its role live and proven; else the hook's Refusal, or the store's error (fail closed: only nil lets a verb act).
Types ¶
This section is empty.