nonces

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFromResponse

func GetFromResponse(resp *http.Response) (string, error)

GetFromResponse Extracts a nonce from a HTTP response.

Types

type Manager

type Manager struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Manager Manages nonces.

func NewManager

func NewManager(do *sender.Doer, nonceURL string) *Manager

NewManager Creates a new Manager.

func (*Manager) Nonce

func (n *Manager) Nonce() (string, error)

Nonce implement jose.NonceSource

func (*Manager) Pop

func (n *Manager) Pop() (string, bool)

Pop Pops a nonce.

func (*Manager) Push

func (n *Manager) Push(nonce string)

Push Pushes a nonce.

Jump to

Keyboard shortcuts

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