util

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 13 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanDial

func CanDial(addr ma.Multiaddr, s *swarm.Swarm) bool

CanDial returns whether or not the address is dialable.

func DecodeKey

func DecodeKey(k string) (*sym.Key, error)

DecodeKey from a string into a symmetric key.

func DefaultBoostrapPeers

func DefaultBoostrapPeers() []peer.AddrInfo

func LoadKey

func LoadKey(pth string) crypto.PrivKey

func MustParseAddr added in v0.1.6

func MustParseAddr(str string) ma.Multiaddr

func ParseBootstrapPeers

func ParseBootstrapPeers(addrs []string) ([]peer.AddrInfo, error)

func SetLogLevels

func SetLogLevels(systems map[string]logging.LogLevel) error

SetLogLevels sets levels for the given systems.

func SetupDefaultLoggingConfig

func SetupDefaultLoggingConfig(repoPath string)

SetupDefaultLoggingConfig sets up a standard logging configuration.

func TCPAddrFromMultiAddr

func TCPAddrFromMultiAddr(maddr ma.Multiaddr) (addr string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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