Documentation ¶
Index ¶
- Constants
- func ConnectToPeer(ctx context.Context, h host.Host, peer host.Host) error
- func ConnectToPeersContinuously(ctx context.Context, cm *system.CleanupManager, h host.Host, ...) error
- func ConnectToPeersContinuouslyWithRetryDuration(ctx context.Context, cm *system.CleanupManager, h host.Host, ...) error
- func GeneratePrivateKey(numBits int) (crypto.PrivKey, error)
- func NewHost(port int, privKey crypto.PrivKey, opts ...libp2p.Option) (host.Host, error)
- func NewHostForTest(ctx context.Context, peers ...host.Host) (host.Host, error)
- type PeerInfoDecorator
- type PeerInfoDecoratorParams
Constants ¶
View Source
const DefaultKeySize = 2048
Variables ¶
This section is empty.
Functions ¶
func ConnectToPeer ¶ added in v0.3.26
func ConnectToPeersContinuouslyWithRetryDuration ¶ added in v0.3.24
func GeneratePrivateKey ¶ added in v1.0.4
Types ¶
type PeerInfoDecorator ¶ added in v1.2.1
type PeerInfoDecorator struct {
// contains filtered or unexported fields
}
func NewPeerInfoDecorator ¶ added in v1.2.1
func NewPeerInfoDecorator(params PeerInfoDecoratorParams) *PeerInfoDecorator
func (*PeerInfoDecorator) DecorateNodeInfo ¶ added in v1.2.1
Click to show internal directories.
Click to hide internal directories.