Versions in this module Expand all Collapse all v1 v1.3.3 Mar 19, 2026 v1.3.2 Mar 19, 2026 Changes in this version + type IPPool struct + IPSubnet *net.IPNet + Pool *LazyReusePool + func NewIPPool(cidr string) (*IPPool, error) + func (p *IPPool) Allocate(request net.IP) (net.IP, error) + func (p *IPPool) Exclude(excludePool *IPPool) error + func (p *IPPool) Reallocate(request net.IP) (net.IP, bool) + func (p *IPPool) Release(ip net.IP) error + func (p *IPPool) String() string + type LazyReusePool struct + func NewLazyReusePool(first, last int) (*LazyReusePool, error) + func (p *LazyReusePool) Allocate() (res int, ok bool) + func (p *LazyReusePool) Contains(first, last int) bool + func (p *LazyReusePool) Dump() [][]int + func (p *LazyReusePool) Free(value int) bool + func (p *LazyReusePool) Max() int + func (p *LazyReusePool) Min() int + func (p *LazyReusePool) Remain() int + func (p *LazyReusePool) Reserve(first, last int) error + func (p *LazyReusePool) Total() int + func (p *LazyReusePool) Use(value int) bool + func (p1 *LazyReusePool) IsJoint(p2 *LazyReusePool) bool