static

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectStaticPeers

func ConnectStaticPeers(ctx context.Context, log logrus.FieldLogger, host core.Host, multiAddrs []ma.Multiaddr, onConnect ConnectionCallback) error

onConnect may be nil, if no further action is required after starting the connection.

func ParseMultiAddrs

func ParseMultiAddrs(addrs ...string) ([]ma.Multiaddr, error)

Types

type ConnectionCallback

type ConnectionCallback func(info peer.AddrInfo, alreadyConnected bool) error

Jump to

Keyboard shortcuts

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