ipdb

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPDB

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

struct what contain all pools and filters in programm

func NewIPDB

func NewIPDB() *IPDB

return new ip database

func (*IPDB) AddFilter

func (db *IPDB) AddFilter(name string, elements map[string]interface{}) error

add filter to db

func (*IPDB) AddPool

func (db *IPDB) AddPool(name string, addresses []interface{}) error

add pool to db

func (*IPDB) AddServerPool

func (db *IPDB) AddServerPool(name string, addresses map[string]interface{}) error

add servers pool to db

func (*IPDB) GetFilter

func (db *IPDB) GetFilter(name string) *ippool.Filter

...

func (*IPDB) GetFilterCopy added in v0.2.2

func (db *IPDB) GetFilterCopy(name string) (ippool.Filter, bool)

...

func (*IPDB) GetPool

func (db *IPDB) GetPool(name string) *ippool.Pool

...

func (*IPDB) GetPoolCopy added in v0.2.2

func (db *IPDB) GetPoolCopy(name string) (ippool.Pool, bool)

...

func (*IPDB) GetServerPool

func (db *IPDB) GetServerPool(name string) *ippool.ServerPool

...

func (*IPDB) GetServerPoolCopy added in v0.2.2

func (db *IPDB) GetServerPoolCopy(name string) (ippool.ServerPool, bool)

...

func (*IPDB) Init

func (db *IPDB) Init()

init db maps

Jump to

Keyboard shortcuts

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