net

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	IP  net.IP
	Dns string
}

func (Host) Clone

func (this Host) Clone() Host

func (Host) MarshalText

func (this Host) MarshalText() ([]byte, error)

func (*Host) Set

func (this *Host) Set(in string) error

func (*Host) SetNetAddr

func (this *Host) SetNetAddr(in net.Addr) error

func (Host) String

func (this Host) String() string

func (*Host) UnmarshalText

func (this *Host) UnmarshalText(in []byte) error

type NetAddress

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

func MustNewNetAddress

func MustNewNetAddress(plain string) NetAddress

func NewNetAddress

func NewNetAddress(plain string) (NetAddress, error)

func (NetAddress) Get

func (this NetAddress) Get() net.Addr

func (NetAddress) IsEqualTo

func (this NetAddress) IsEqualTo(other any) bool

func (NetAddress) IsZero

func (this NetAddress) IsZero() bool

func (NetAddress) Listen

func (this NetAddress) Listen() (net.Listener, error)

func (NetAddress) MarshalText

func (this NetAddress) MarshalText() (text []byte, err error)

func (*NetAddress) Set

func (this *NetAddress) Set(text string) error

func (NetAddress) String

func (this NetAddress) String() string

func (*NetAddress) UnmarshalText

func (this *NetAddress) UnmarshalText(text []byte) error

type NetAddresses

type NetAddresses []NetAddress

func (NetAddresses) IsEqualTo

func (this NetAddresses) IsEqualTo(other any) bool

func (*NetAddresses) Trim

func (this *NetAddresses) Trim() error

func (*NetAddresses) Validate

func (this *NetAddresses) Validate() error

Jump to

Keyboard shortcuts

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