Versions in this module Expand all Collapse all v1 v1.0.1 Nov 22, 2026 v1.0.0 Nov 21, 2026 Changes in this version + const FieldName + var ErrExpired = errors.New("altcha: challenge expired") + var ErrInvalid = errors.New("altcha: invalid solution") + var ErrReplayed = errors.New("altcha: solution already used") + func Challenger(opts Options) flamego.Handler + type Challenge interface + HTML func(msgs ...Messages) template.HTML + Verify func(payload string) error + type Messages struct + Error string + Idle string + Retry string + Verified string + Verifying string + type Options struct + Cost int + Expiry time.Duration + MaxCounter int + Secret []byte + Store ReplayStore + URLPrefix string + type ReplayStore interface + Use func(key string, expiresAt time.Time) (bool, error)