analysis

package
v0.0.0-...-17b3017 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackagingHashcode

func PackagingHashcode(hashcode string) string

func SortHashcode

func SortHashcode(hashcode hashcodeSlice)

Types

type BGPBST

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

func NewBGPBST

func NewBGPBST() *BGPBST

func (*BGPBST) EncodeIPTree

func (r *BGPBST) EncodeIPTree()

func (*BGPBST) GetRoot

func (r *BGPBST) GetRoot() *IPAddr

func (*BGPBST) Insert

func (r *BGPBST) Insert(b *BGPInfo)

func (*BGPBST) Search

func (r *BGPBST) Search(ipaddr string) (ResPrefix []string, isExist error)

func (*BGPBST) SetRoot

func (r *BGPBST) SetRoot(root *IPAddr)

type BGPInfo

type BGPInfo struct {
	Prefix   []string
	Hashcode string
	AsPath   string
}

func NewBGPInfo

func NewBGPInfo(content string) *BGPInfo

NewBGPInfo returns the BGPInfo struct.

func (*BGPInfo) ConvertHashcode

func (b *BGPInfo) ConvertHashcode()

type Bit

type Bit uint8

type IPAddr

type IPAddr struct {
	Left, Right *IPAddr
	Hashcode    string
	Prefix      string
	// contains filtered or unexported fields
}

func NewIPAddr

func NewIPAddr(bit Bit) *IPAddr

func (*IPAddr) GetID

func (i *IPAddr) GetID() string

func (*IPAddr) Getbit

func (i *IPAddr) Getbit() Bit

Jump to

Keyboard shortcuts

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