node

package
v0.0.0-...-a5ce5ae Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	P2P() P2P
	Resolver() did.Resolver
	ID() did.IdentityStore
	Cfg() *config.Config
	Storage() storage.Store
	RandomSource() <-chan uint64
}

type P2P

type P2P interface {
	Connect(context.Context, peer.AddrInfo) error
	Open(context.Context, peer.ID, protocol.ID) (network.Stream, error)
	FindProvider(context.Context, cid.Cid) ([]peer.AddrInfo, error)
	Peers() []peer.ID
	Host() host.Host
	PubSub() *pubsub.PubSub
}

Jump to

Keyboard shortcuts

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