nonce

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNonceHandlerFunc

func GetNonceHandlerFunc(ns NonceService) http.HandlerFunc

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

func (*HashicorpNonceService) Stats

func (s *HashicorpNonceService) Stats() (*Stats, error)

type NonceService

type NonceService interface {
	Get() (string, error)
	Redeem(nonceStr string) error
	Stats() (*Stats, error)
}

type Stats

type Stats struct {
	Active int
}

Jump to

Keyboard shortcuts

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