bucket

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultMaxFetchNum default max fetching job from bucket
	DefaultMaxFetchNum uint64 = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket interface {
	CreateJob(j *job.Job, isTTR bool) error
	GetBuckets() []uint64
	GetBucketJobs(bid uint64) ([]job.NameVersion, error)

	GetMaxFetchNum() uint64
	SetMaxFetchNum(num uint64)
}

Bucket interface to save jobs and repeat is searched for jobs which are ready to process

func New

func New(s store.Store, l log.Logger, size uint64, name string) Bucket

New a Bucket interface object

Jump to

Keyboard shortcuts

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