Documentation
¶
Overview ¶
Package nonce handles the logic of a nonce.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface {
Generate(ctx context.Context) (string, error)
IsValid(ctx context.Context, nonce string) (bool, error)
}
Repository defines the nonce methods.
func NewRepository ¶
func NewRepository(db *sql.DB) Repository
NewRepository wraps around a SQL database to execute the nonce methods.
Click to show internal directories.
Click to hide internal directories.