addressing

package
v0.0.0-...-ec72bf4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCEIP

type CCEIP interface {
	EndpointPrefix() *net.IPNet
	IP() net.IP
	String() string
	IsIPv6() bool
	GetFamilyString() string
	IsSet() bool
}

type CCEIPv4

type CCEIPv4 []byte

func DeriveCCEIPv4

func DeriveCCEIPv4(src net.IP) CCEIPv4

func NewCCEIPv4

func NewCCEIPv4(address string) (CCEIPv4, error)

func (CCEIPv4) EndpointPrefix

func (ip CCEIPv4) EndpointPrefix() *net.IPNet

func (CCEIPv4) GetFamilyString

func (ip CCEIPv4) GetFamilyString() string

GetFamilyString returns the address family of ip as a string.

func (CCEIPv4) IP

func (ip CCEIPv4) IP() net.IP

func (CCEIPv4) IsIPv6

func (ip CCEIPv4) IsIPv6() bool

func (CCEIPv4) IsSet

func (ip CCEIPv4) IsSet() bool

IsSet returns true if the IP is set

func (CCEIPv4) MarshalJSON

func (ip CCEIPv4) MarshalJSON() ([]byte, error)

func (CCEIPv4) String

func (ip CCEIPv4) String() string

func (*CCEIPv4) UnmarshalJSON

func (ip *CCEIPv4) UnmarshalJSON(b []byte) error

type CCEIPv6

type CCEIPv6 []byte

func DeriveCCEIPv6

func DeriveCCEIPv6(src net.IP) CCEIPv6

func NewCCEIPv6

func NewCCEIPv6(address string) (CCEIPv6, error)

NewCCEIPv6 returns a IPv6 if the given `address` is an IPv6 address.

func (CCEIPv6) EndpointPrefix

func (ip CCEIPv6) EndpointPrefix() *net.IPNet

func (CCEIPv6) GetFamilyString

func (ip CCEIPv6) GetFamilyString() string

GetFamilyString returns the address family of ip as a string.

func (CCEIPv6) IP

func (ip CCEIPv6) IP() net.IP

func (CCEIPv6) IsIPv6

func (ip CCEIPv6) IsIPv6() bool

func (CCEIPv6) IsSet

func (ip CCEIPv6) IsSet() bool

IsSet returns true if the IP is set

func (CCEIPv6) MarshalJSON

func (ip CCEIPv6) MarshalJSON() ([]byte, error)

func (CCEIPv6) String

func (ip CCEIPv6) String() string

func (*CCEIPv6) UnmarshalJSON

func (ip *CCEIPv6) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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