Documentation ¶
Overview ¶
Package p2p provides the implementation for the p2p gossip and libp2p swarm membership used for a seed node, which is a non-relaying, non-client node only providing network metadata to new connections.
Index ¶
- Variables
- func Base58Decode(key string) (priv crypto.PrivKey, err error)
- func Base58Encode(priv crypto.PrivKey) (key string, err error)
- func InitFlags(cmd *cobra.Command)
- func NewMultiAddr(addr string) (maddr multiaddr.Multiaddr)
- func Run()
- func Shutdown() (err error)
- func WhenReady() chan bool
- func WhenShutdown() chan bool
- func WhenStartFailed() chan error
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &Config{
ListenAddresses: []multiaddr.Multiaddr{},
SeedAddresses: []multiaddr.Multiaddr{},
ConnectAddresses: []multiaddr.Multiaddr{},
}
Functions ¶
func NewMultiAddr ¶
func NewMultiAddr(addr string) (maddr multiaddr.Multiaddr)
func WhenShutdown ¶
func WhenShutdown() chan bool
func WhenStartFailed ¶
func WhenStartFailed() chan error
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.