allowiplist

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 8 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 = 56
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowedIPsType

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

func New

func New(cfg *config.AllowIP, logger *logrus.Logger) (*AllowedIPsType, error)

Jump to

Keyboard shortcuts

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