client

package
v0.0.0-...-7d69bf5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(timeoutDuration int, tokenCache TokenCache, httpClient *http.Client) csrf.Client

Types

type TokenCache

type TokenCache interface {
	Get(itemID string) (resp *csrf.Response, found bool)
	Add(itemID string, resp *csrf.Response)
	Remove(itemID string)
}

Cache for CSRF data items

func NewTokenCache

func NewTokenCache() TokenCache

Creates a new TokenCache instance

Jump to

Keyboard shortcuts

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