network

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 11

Documentation

Index

Constants

View Source
const (
	TLSProtocol = "tls"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

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

Address represents the FrostFS node network address.

func (Address) Equal

func (a Address) Equal(addr Address) bool

Equal compares Address's.

func (*Address) FromString

func (a *Address) FromString(s string) error

FromString restores Address from a string representation.

Supports URIAddr, MultiAddr and HostAddr strings.

func (Address) IsTLSEnabled

func (a Address) IsTLSEnabled() bool

IsTLSEnabled searches for wrapped TLS protocol in multiaddr.

func (Address) Protocols

func (a Address) Protocols() []multiaddr.Protocol

Protocols returns list of protocols.

func (Address) String

func (a Address) String() string

String returns multiaddr string.

func (Address) URIAddr

func (a Address) URIAddr() string

URIAddr returns Address as a URI.

Panics if host address cannot be fetched from Address.

See also FromString.

Jump to

Keyboard shortcuts

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