Versions in this module Expand all Collapse all v0 v0.1.1 Aug 24, 2023 v0.1.0 Aug 9, 2023 Changes in this version + type IPv4 [4]byte + func (ip IPv4) Addr() netip.Addr + func (ip IPv4) String() string + type IPv4Pool struct + func NewIPv4Pool(ip IPv4, nbits int) *IPv4Pool + func (p *IPv4Pool) Get() (IPv4, bool) + func (p *IPv4Pool) GetAddr() (netip.Addr, bool) + func (p *IPv4Pool) Put(ip IPv4) + func (p *IPv4Pool) PutAddr(ip netip.Addr) + func (p *IPv4Pool) Reset(ip IPv4, nbits int) + func (p *IPv4Pool) String() string + type IPv6 [16]byte + func (ip IPv6) Addr() netip.Addr + func (ip IPv6) String() string + type IPv6Pool struct + func NewIPv6Pool(ip IPv6, nbits int) *IPv6Pool + func (p *IPv6Pool) Get() (IPv6, bool) + func (p *IPv6Pool) GetAddr() (netip.Addr, bool) + func (p *IPv6Pool) Put(ip IPv6) + func (p *IPv6Pool) PutAddr(ip netip.Addr) + func (p *IPv6Pool) Reset(ip IPv6, nbits int) + func (p *IPv6Pool) String() string + type Pool interface + GetAddr func() (netip.Addr, bool) + PutAddr func(netip.Addr) + func NewPool(prefix netip.Prefix) Pool