Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB implements the Store interface using postgres as it's backend.
func (*DB) Consume ¶
Consume will record the use of a nonce value.
An error is returned if it is not possible to validate the nonce value. Otherwise true/false is returned to indicate if the id is valid.
The first call to Consume for a given ID will return true, subsequent calls for the same ID will return false.
Click to show internal directories.
Click to hide internal directories.