Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchProvidingSystem ¶
type BatchProvidingSystem struct {
// contains filtered or unexported fields
}
func New ¶
func New(provider provideMany, q *queue.Queue, opts ...Option) (*BatchProvidingSystem, error)
func (*BatchProvidingSystem) Close ¶
func (s *BatchProvidingSystem) Close() error
func (*BatchProvidingSystem) Provide ¶
func (s *BatchProvidingSystem) Provide(cid cid.Cid) error
func (*BatchProvidingSystem) Reprovide ¶
func (s *BatchProvidingSystem) Reprovide(ctx context.Context) error
func (*BatchProvidingSystem) Run ¶
func (s *BatchProvidingSystem) Run()
func (*BatchProvidingSystem) Stat ¶
func (s *BatchProvidingSystem) Stat(ctx context.Context) (BatchedProviderStats, error)
Stat returns various stats about this provider system
type BatchedProviderStats ¶
type Option ¶
type Option func(system *BatchProvidingSystem) error
Option defines the functional option type that can be used to configure BatchProvidingSystem instances
func KeyProvider ¶
func KeyProvider(fn simple.KeyChanFunc) Option
func ReproviderInterval ¶
Click to show internal directories.
Click to hide internal directories.