subnet

package
v0.0.0-...-cd4f2e8 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package subnet comment should be of this form

Index

Constants

This section is empty.

Variables

View Source
var ErrIncorrectCIDR = errors.New("CIDR definition incorrect")

ErrIncorrectCIDR exported var should have comment or be unexported

Functions

This section is empty.

Types

type Subnet

type Subnet struct {
	IP   int128.Uint128
	Ones int
	Bits int
}

Subnet exported type should have comment or be unexported

func DedupSorted

func DedupSorted(ips []Subnet) []Subnet

DedupSorted exported func should have comment or be unexported

func FromIPNet

func FromIPNet(n *net.IPNet) Subnet

FromIPNet exported func should have comment or be unexported

func Merge

func Merge(ips []Subnet) []Subnet

Merge exported func should have comment or be unexported

func MergePairs

func MergePairs(ips []Subnet) []Subnet

MergePairs exported func should have comment or be unexported

func MergeSorted

func MergeSorted(ips []Subnet) []Subnet

MergeSorted exported func should have comment or be unexported

func MustParseCIDR

func MustParseCIDR(s string, strict bool) Subnet

MustParseCIDR exported func should have comment or be unexported

func ParseCIDR

func ParseCIDR(s string, strict bool) (Subnet, error)

ParseCIDR exported func should have comment or be unexported

func Sort

func Sort(ips []Subnet) []Subnet

Sort exported func should have comment or be unexported

func (Subnet) IPNet

func (s Subnet) IPNet() *net.IPNet

IPNet exported func should have comment or be unexported

func (Subnet) Include

func (s Subnet) Include(b Subnet) bool

Include exported func should have comment or be unexported

func (Subnet) Less

func (s Subnet) Less(b Subnet) bool

Less exported func should have comment or be unexported

func (Subnet) Mask

func (s Subnet) Mask() masks.Mask

Mask exported func should have comment or be unexported

func (Subnet) String

func (s Subnet) String() string

String exported func should have comment or be unexported

Jump to

Keyboard shortcuts

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