whiteip

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WhiteIPT

type WhiteIPT struct {
	IPInts map[typ.IPInt]struct{}
	sync.RWMutex
}

func NewWhiteIPT

func NewWhiteIPT() *WhiteIPT

func (*WhiteIPT) Add

func (w *WhiteIPT) Add(ipInts ...typ.IPInt)

func (*WhiteIPT) IsWhite

func (w *WhiteIPT) IsWhite(ipInt typ.IPInt) (ok bool)

func (*WhiteIPT) List

func (w *WhiteIPT) List() (ipList []string)

Jump to

Keyboard shortcuts

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