Versions in this module Expand all Collapse all v0 v0.5.0 Nov 24, 2026 v0.4.0 Nov 19, 2026 Changes in this version + func Secret() string + func UserCode(alphabet string, symbols int) string + type Flow struct + CreatedAt time.Time + ExpiresAt time.Time + Interval time.Duration + NextPoll time.Time + State State + Subject string + func New(now time.Time, interval time.Duration) Flow + func (f *Flow) Expired(now time.Time) bool + func (f *Flow) Finish(now time.Time, subject string, approved, commit bool) bool + func (f *Flow) Poll(now time.Time) State + func (f *Flow) Reserve(now time.Time) bool + type State string + const Approved + const Deciding + const Denied + const Expired + const Pending + const SlowDown