Versions in this module Expand all Collapse all v0 v0.2.2 Dec 11, 2023 v0.2.1 Dec 11, 2023 v0.2.0 Dec 5, 2023 Changes in this version + type GenerateOption func(*GenerateOptions) + func WithExpiration(expiration time.Duration) GenerateOption + func WithRef(ref string) GenerateOption + type GenerateOptions struct type Repository + ClearByRef func(ctx context.Context, ref string) error v0.1.0 Dec 1, 2023 Changes in this version + type Repository interface + Generate func(ctx context.Context) (string, error) + IsValid func(ctx context.Context, nonce string) (bool, error) + func NewRepository(db *sql.DB) Repository