inmemory

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nonce

type Nonce struct {
	// contains filtered or unexported fields
}

Nonce tracks seen nonces in memory.

It is not recommended to use this in production because this will not persist across restarts.

func NewNonceStorage

func NewNonceStorage() *Nonce

func (*Nonce) Seen

func (m *Nonce) Seen(ctx context.Context, nonce string) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL