providercacher

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachingQueue

type CachingQueue struct {
	// contains filtered or unexported fields
}

func NewCachingQueue

func NewCachingQueue(jobQueue JobQueue) *CachingQueue

func (*CachingQueue) QueueProviderCaching

func (q *CachingQueue) QueueProviderCaching(ctx context.Context, provider model.ProviderResult, index blobindex.ShardedDagIndexView) error

type JobHandler

type JobHandler struct {
	// contains filtered or unexported fields
}

func NewJobHandler

func NewJobHandler(providerCacher ProviderCacher) *JobHandler

func (*JobHandler) Handle

func (j *JobHandler) Handle(ctx context.Context, job ProviderCachingJob) error

type JobQueue

type JobQueue interface {
	Queue(ctx context.Context, j ProviderCachingJob) error
}

type ProviderCacher

type ProviderCacher interface {
	CacheProviderForIndexRecords(ctx context.Context, provider model.ProviderResult, index blobindex.ShardedDagIndexView) (written uint64, err error)
}

func NewSimpleProviderCacher

func NewSimpleProviderCacher(providerStore types.ProviderStore) ProviderCacher

type ProviderCachingJob

type ProviderCachingJob struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL