Documentation ¶
Index ¶
- Variables
- func NewBlockstore(ctx context.Context, ds datastore.Batching) (blockstore.Blockstore, error)
- func NewDatastore(path string) (datastore.Batching, error)
- func NewLibp2pPeer(ctx context.Context, port int, pdef metadata.PeerDefinition, ...) (host.Host, routing.ContentRouting, error)
- func NewMuxerOption(muxerType string) (libp2p.Option, error)
- func NewProviderSystem(ctx context.Context, ds datastore.Batching, bs blockstore.Blockstore, ...) (provider.System, error)
- func NewRoutingOption(ctx context.Context, routingType string) (libp2p.Option, routing.ContentRouting, error)
- func NewSecurityOption(securityType string) (libp2p.Option, error)
- func NewTransportOption(transportType string, port int) (libp2p.Option, string, error)
- type Peer
- func (p *Peer) Add(ctx context.Context, r io.Reader, opts ...p2plab.AddOption) (ipld.Node, error)
- func (p *Peer) Connect(ctx context.Context, infos []libp2ppeer.AddrInfo) error
- func (p *Peer) DAGService() ipld.DAGService
- func (p *Peer) Disconnect(ctx context.Context, infos []libp2ppeer.AddrInfo) error
- func (p *Peer) FetchGraph(ctx context.Context, c cid.Cid) error
- func (p *Peer) Get(ctx context.Context, c cid.Cid) (files.Node, error)
- func (p *Peer) Host() host.Host
- func (p *Peer) Report(ctx context.Context) (metadata.ReportNode, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ReprovideInterval = 12 * time.Hour
)
Functions ¶
func NewBlockstore ¶
func NewBlockstore(ctx context.Context, ds datastore.Batching) (blockstore.Blockstore, error)
func NewLibp2pPeer ¶
func NewProviderSystem ¶
func NewProviderSystem(ctx context.Context, ds datastore.Batching, bs blockstore.Blockstore, r routing.ContentRouting) (provider.System, error)
func NewRoutingOption ¶
Types ¶
type Peer ¶
type Peer struct {
// contains filtered or unexported fields
}
func (*Peer) DAGService ¶
func (p *Peer) DAGService() ipld.DAGService
func (*Peer) Disconnect ¶
Click to show internal directories.
Click to hide internal directories.