Documentation ¶
Index ¶
Constants ¶
View Source
const (
L4Protocol = "tcp"
)
Variables ¶
This section is empty.
Functions ¶
func IPAddrFromMultiaddr ¶ added in v0.14.0
IPAddrFromMultiaddr converts "/dns4/localhost/tcp/8080" to "192.168.0.1:8080".
func IsLocalAddress ¶ added in v0.12.0
func IsLocalAddress(src LocalAddressSource, addr *Address) bool
IsLocalAddress returns true if network endpoint from local address source is equal to network endpoint of passed address.
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
Address represents the NeoFS node network address.
func AddressFromString ¶ added in v0.12.0
AddressFromString restores address from a multiaddr string representation.
func (Address) IPAddrString ¶ added in v0.12.0
IPAddrString returns network endpoint address in string format.
type LocalAddressSource ¶ added in v0.12.0
type LocalAddressSource interface {
LocalAddress() *Address
}
LocalAddressSource is an interface of local network address container with read access.
Click to show internal directories.
Click to hide internal directories.