ykeys

package
v0.0.0-...-fd6c280 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YKeyStorage

type YKeyStorage struct {
	*ristretto.Cache
	Keys map[string]configurationtypes.SurrogateKeys
}

YKeyStorage is the layer for YKey support storage

func InitializeYKeys

func InitializeYKeys(keys map[string]configurationtypes.SurrogateKeys) *YKeyStorage

InitializeYKeys will initialize the ykey storage system

func (*YKeyStorage) AddToTags

func (y *YKeyStorage) AddToTags(url string, tags []string)

AddToTags add an URL to a tag list

func (*YKeyStorage) GetValidatedTags

func (y *YKeyStorage) GetValidatedTags(key string, headers http.Header) []string

GetValidatedTags returns the validated tags based on the key x headers

func (*YKeyStorage) InvalidateTagURLs

func (y *YKeyStorage) InvalidateTagURLs(urls string) []string

InvalidateTagURLs invalidate URLs in the stored map

func (*YKeyStorage) InvalidateTags

func (y *YKeyStorage) InvalidateTags(tags []string) []string

InvalidateTags invalidate a tag list

Jump to

Keyboard shortcuts

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