nonce

package module
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: EUPL-1.2 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashicorpNonceService

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

func NewHashicorpNonceService

func NewHashicorpNonceService() (*HashicorpNonceService, error)

func (*HashicorpNonceService) Get

func (s *HashicorpNonceService) Get() (string, error)

func (*HashicorpNonceService) Redeem

func (s *HashicorpNonceService) Redeem(nonceStr string) error

type Options

type Options struct {
	ExpirySeconds int64
}

type Service

type Service interface {
	Get() (string, error)
	Redeem(nonceStr string) error
}

func NewValkeyNonceService

func NewValkeyNonceService(valkeyClient valkey.Client, options Options) (Service, error)

type ValkeyNonceService

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

func (*ValkeyNonceService) Get

func (v *ValkeyNonceService) Get() (string, error)

func (*ValkeyNonceService) Redeem

func (v *ValkeyNonceService) Redeem(nonce string) error

Jump to

Keyboard shortcuts

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