pool

package
v0.0.0-...-195614b Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

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

Pool is structure which contains cached IPNet and pool of adresses

func ThePool

func ThePool(args ...interface{}) Pool

ThePool is a singleton, wwhich creates a pool of IPs based on provided CIDR

func (Pool) NextAddr

func (p Pool) NextAddr(args ...interface{}) string

NextAddr returns next address

func (Pool) NextCidr

func (p Pool) NextCidr(args ...interface{}) string

NextCidr returns the next cidr

func (Pool) NextMac

func (p Pool) NextMac(mac string) string

NextMac returns next MAC

func (Pool) Preset

func (p Pool) Preset() bool

Preset method is a wrapper for unexported field

Jump to

Keyboard shortcuts

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