Documentation ¶
Overview ¶
Package single implements a ClusterDAGService that chunks and adds content to cluster without sharding, before pinning it.
Index ¶
- type DAGService
- func (dgs *DAGService) Add(ctx context.Context, node ipld.Node) error
- func (dgs *DAGService) AddMany(ctx context.Context, nodes []ipld.Node) error
- func (dgs *DAGService) Allocations() []peer.ID
- func (dgs *DAGService) Close() error
- func (dgs *DAGService) Finalize(ctx context.Context, root api.Cid) (api.Cid, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAGService ¶
type DAGService struct { adder.BaseDAGService // contains filtered or unexported fields }
DAGService is an implementation of an adder.ClusterDAGService which puts the added blocks directly in the peers allocated to them (without sharding).
func New ¶
New returns a new Adder with the given rpc Client. The client is used to perform calls to IPFS.BlockStream and Pin content on Cluster.
func (*DAGService) Allocations ¶
func (dgs *DAGService) Allocations() []peer.ID
Allocations returns the add destinations decided by the DAGService.
Click to show internal directories.
Click to hide internal directories.