blackhouse

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlackHouseT

type BlackHouseT struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewBlackHouseT

func NewBlackHouseT() *BlackHouseT

func (*BlackHouseT) AddBlack

func (b *BlackHouseT) AddBlack(ipInt typ.IPInt, blackDuration time.Duration)

func (*BlackHouseT) IsBlack

func (b *BlackHouseT) IsBlack(ipInt typ.IPInt) (ok bool)

func (*BlackHouseT) List

func (b *BlackHouseT) List() (ipList []string)

Jump to

Keyboard shortcuts

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