providercacher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 {
	Provider model.ProviderResult
	Index    blobindex.ShardedDagIndexView
}

Jump to

Keyboard shortcuts

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