list

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Valid_ip_cidr

func Valid_ip_cidr(ip string) (interface{}, error)

Returns *net.IP | *net.IPNet, error

Types

type B

type B struct {
	// contains filtered or unexported fields
}

func (*B) Add

func (o *B) Add(ip string, ts *time.Time) error

func (*B) All

func (o *B) All() (a []string)

func (*B) Expire

func (o *B) Expire(dur time.Duration) int

func (*B) Len

func (o *B) Len() int

func (*B) Lookup

func (o *B) Lookup(ip net.IP) (found bool)

func (*B) Lookup_all

func (o *B) Lookup_all(ip net.IP) (ts *time.Time, found bool)

func (*B) Remove

func (o *B) Remove(ip string)

type W

type W struct {
	// contains filtered or unexported fields
}

func (*W) Add

func (o *W) Add(ip string) error

ip: net.IP or net.IPNet

func (*W) Len

func (o *W) Len() int

func (*W) Lookup

func (o *W) Lookup(ip net.IP) (found bool)

func (*W) Remove

func (o *W) Remove(ip string)

ip: net.IP or net.IPNet

type WB

type WB struct {
	W *W
	B *B
}

func New

func New() *WB

Jump to

Keyboard shortcuts

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