Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyChanFunc ¶
KeyChanFunc is function streaming CIDs to pass to content routing
func NewBlockstoreProvider ¶
func NewBlockstoreProvider(bstore blocks.Blockstore) KeyChanFunc
NewBlockstoreProvider returns key provider using bstore.AllKeysChan
func NewPinnedProvider ¶
func NewPinnedProvider(pinning pin.Pinner, dag ipld.DAGService, onlyRoots bool) KeyChanFunc
NewPinnedProvider returns provider supplying pinned keys
type Reprovider ¶
type Reprovider struct {
// contains filtered or unexported fields
}
func NewReprovider ¶
func NewReprovider(ctx context.Context, rsys routing.ContentRouting, keyProvider KeyChanFunc) *Reprovider
NewReprovider creates new Reprovider instance.
func (*Reprovider) Reprovide ¶
func (rp *Reprovider) Reprovide() error
Reprovide registers all keys given by rp.keyProvider to libp2p content routing
func (*Reprovider) Run ¶
func (rp *Reprovider) Run(tick time.Duration)
Run re-provides keys with 'tick' interval or when triggered
Click to show internal directories.
Click to hide internal directories.