Documentation ¶
Overview ¶
Package routesum summarizes a list of IPs and networks to its shortest form.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvalidInputErr ¶
type InvalidInputErr struct {
InvalidValue string
}
InvalidInputErr represents an error ingesting or validating input
func (*InvalidInputErr) Error ¶
func (e *InvalidInputErr) Error() string
Error returns a stringified form of the error.
type RouteSum ¶
type RouteSum struct {
// contains filtered or unexported fields
}
RouteSum has methods supporting route summarization of networks and hosts
func (*RouteSum) InsertFromString ¶
InsertFromString adds either a string-formatted network or IP to the summary
func (*RouteSum) SummaryStrings ¶
SummaryStrings returns a summary of all received routes as a string slice.
Directories ¶
Path | Synopsis |
---|---|
Package bitslice provides a slice of bits
|
Package bitslice provides a slice of bits |
Package rstrie provides a datatype that supports building a space-efficient summary of networks and IPs.
|
Package rstrie provides a datatype that supports building a space-efficient summary of networks and IPs. |
Click to show internal directories.
Click to hide internal directories.