Versions in this module Expand all Collapse all v1 v1.4.1 Mar 1, 2023 Changes in this version + type BootNodes interface + Connected func(context.Context, p2p.Peer) + Count func() int + Disconnected func(p2p.Peer) + EachPeer func(pf model.EachPeerFunc) error + RandomPeer func(boson.Address) (boson.Address, error) + type Container struct + func NewContainer(base boson.Address) *Container + func (c *Container) Connected(ctx context.Context, peer p2p.Peer) + func (c *Container) Count() int + func (c *Container) Disconnected(peer p2p.Peer) + func (c *Container) EachPeer(pf model.EachPeerFunc) error + func (c *Container) Metrics() []prometheus.Collector + func (c *Container) PeerInfo() model.BinInfo + func (c *Container) RandomPeer(not boson.Address) (boson.Address, error)