network

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, addr Address) (net.Conn, error)

Dial connects to a remote node by address.

func DialWithTimeout

func DialWithTimeout(ctx context.Context, addr Address, timeout time.Duration) (net.Conn, error)

DialWithTimeout connects to a remote node by address with timeout.

func Listen

func Listen(addr Address) (net.Listener, error)

Listen announces on the local network address.

Types

type Address

type Address = multiaddr.Multiaddr

Address represents the NeoFS node network address.

It is a type alias of github.com/multiformats/go-multiaddr.Multiaddr.

Jump to

Keyboard shortcuts

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