Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NonceSlidingWindowSize is the maximum distance a new nonce can be from the max nonce before it is rejected // outright. NonceSlidingWindowSize = 1000 )
Variables ¶
View Source
var (
ErrNoSchemaFound = errors.New("no schema found")
)
View Source
var ErrNonceHasAlreadyBeenUsed = errors.New("nonce has already been used")
Functions ¶
This section is empty.
Types ¶
type NonceStorage ¶
type NonceStorage struct { Client *redis.Client // contains filtered or unexported fields }
func NewNonceStorage ¶
func NewNonceStorage(client *redis.Client) NonceStorage
type SchemaStorage ¶
type SchemaStorage struct {
Client *redis.Client
}
func NewSchemaStorage ¶
func NewSchemaStorage(client *redis.Client) SchemaStorage
Click to show internal directories.
Click to hide internal directories.