netdb

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetDB

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

func New

func New(path string) (*NetDB, error)

func (*NetDB) Close

func (n *NetDB) Close() error

func (*NetDB) ReleaseInterface

func (n *NetDB) ReleaseInterface(name string) error

func (*NetDB) ReserveInterface

func (n *NetDB) ReserveInterface(prefix string) (string, error)

func (*NetDB) Subnet

func (n *NetDB) Subnet(cidr string) (*Subnet, error)

type Subnet

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

func (*Subnet) Prefix

func (s *Subnet) Prefix() netip.Prefix

func (*Subnet) Release

func (s *Subnet) Release(prefix netip.Prefix) error

func (*Subnet) ReleaseAddr

func (s *Subnet) ReleaseAddr(addr netip.Addr) error

func (*Subnet) ReleaseSubnet

func (s *Subnet) ReleaseSubnet(prefix netip.Prefix) error

func (*Subnet) Reserve

func (s *Subnet) Reserve() (netip.Prefix, error)

func (*Subnet) ReserveSubnet

func (s *Subnet) ReserveSubnet(bits int, identifier string) (*Subnet, error)

func (*Subnet) Router

func (s *Subnet) Router() netip.Prefix

Jump to

Keyboard shortcuts

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