Documentation
¶
Overview ¶
Package provider implements structures and methods to provide blocks, keep track of which blocks are provided, and to allow those blocks to be reprovided.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
// Run is used to begin processing the provider work
Run()
// Provide takes a cid and makes an attempt to announce it to the network
Provide(cid.Cid) error
// Close stops the provider
Close() error
}
Provider announces blocks to the network
func NewOfflineProvider ¶
func NewOfflineProvider() Provider
NewOfflineProvider creates a Provider that does nothing
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue provides a durable, FIFO interface to the datastore for storing cids
Durability just means that cids in the process of being provided when a crash or shutdown occurs will still be in the queue when the node is brought back online.
Click to show internal directories.
Click to hide internal directories.