topology

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPO

type IPO struct {
	IP   string
	Port string
}

func NewIPO

func NewIPO() *IPO

func (*IPO) IsIPv6

func (this *IPO) IsIPv6() bool

func (*IPO) IsLocal127

func (this *IPO) IsLocal127() bool
type LINK struct {
	IP   net.IP
	Port int
}
func CreateLINK(ipStr string, port int) *LINK
func NewLINK() *LINK

func (*LINK) Equals

func (this *LINK) Equals(h hmap.LinkedKey) bool

LinkedKey Interface for put LinkedSet

func (this *LINK) Equals(h LinkedKey) bool {
	return this.
}

func (*LINK) Hash

func (this *LINK) Hash() uint

LinkedKey Interface for put LinkedSet

func (*LINK) HashCode

func (this *LINK) HashCode() int32

func (*LINK) Include

func (this *LINK) Include(k *LINK) bool

func (*LINK) ToBytes

func (this *LINK) ToBytes(out *io.DataOutputX) *LINK

func (*LINK) ToObject

func (this *LINK) ToObject(in *io.DataInputX) *LINK

func (*LINK) ToString

func (this *LINK) ToString() string

type NODE

type NODE struct {
	Attr *value.MapValue
	// contains filtered or unexported fields
}

func NewNODE

func NewNODE() *NODE

func (*NODE) AddListen

func (this *NODE) AddListen(localIpSet *hmap.StringSet, listenAddr string)

func (*NODE) AddOutter

func (this *NODE) AddOutter(local, remote string)

func (*NODE) IsAttachable

func (this *NODE) IsAttachable(k *LINK) bool

func (*NODE) ToBytes

func (this *NODE) ToBytes() []byte

func (*NODE) ToObject

func (this *NODE) ToObject(b []byte) *NODE

func (*NODE) ToString

func (this *NODE) ToString() string

Jump to

Keyboard shortcuts

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