package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Functions

NewNetwork returns Network built using given net.IPNet.
NewNetworkNumber returns a equivalent NetworkNumber to given IP address, return nil if ip is neither IPv4 nor IPv6.
NextIP returns the next sequential ip.
PreviousIP returns the previous sequential ip.

# Constants

Helper constants.
Helper constants.
Helper constants.
Helper constants.
Helper constants.
Helper constants.

# Variables

ErrInvalidBitPosition is returned when bits requested is not valid.
ErrNoGreatestCommonBit is an error returned when no greatest common bit exists for the cidr ranges.
ErrVersionMismatch is returned upon mismatch in network input versions.

# Structs

Network represents a block of network numbers, also known as CIDR.

# Type aliases

IPVersion is version of IP address.
NetworkNumber represents an IP address using uint32 as internal storage.
NetworkNumberMask is an IP address.