Documentation ¶ Index ¶ Variables func Configure() type CreateCommand type Nonce func Create(ctx context.Context, bucket, key string, cmd CreateCommand) (*Nonce, error) func Get(ctx context.Context, id string) (*Nonce, error) func GetAndInvalidate(ctx context.Context, id string) (*Nonce, error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrNotFound = fmt.Errorf("nonce not found") ) Functions ¶ func Configure ¶ func Configure() Types ¶ type CreateCommand ¶ type CreateCommand struct { TTL time.Duration } type Nonce ¶ type Nonce struct { ID string Bucket string Key string ExpiresAt time.Time } func Create ¶ func Create(ctx context.Context, bucket, key string, cmd CreateCommand) (*Nonce, error) func Get ¶ func Get(ctx context.Context, id string) (*Nonce, error) func GetAndInvalidate ¶ func GetAndInvalidate(ctx context.Context, id string) (*Nonce, error) Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.