denylist

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BufferItems = 64
	ElementCost = 1
	// The actual need is 56 (size of ristretto's storeItem struct)
	StoreItemSize = 128
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeniedTokens

type DeniedTokens struct {
	Cache       *ristretto.Cache
	ElementsNum int64
}

func New

func New(cfg *config.Denylist, logger *logrus.Logger) (*DeniedTokens, error)

Jump to

Keyboard shortcuts

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