Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrJobNotExist error job is not exists ErrJobNotExist = errors.New("job is not exists") // ErrVersionNotSame error job version is not same ErrVersionNotSame = errors.New("version is not same") )
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool interface { CreateJob(topic job.Topic, id job.ID, delay job.Delay, ttr job.TTR, body job.Body, override bool) (*job.Job, error) LoadReadyJob(topic job.Topic, id job.ID, version job.Version) (*job.Job, error) DeleteJob(topic job.Topic, id job.ID) error }
Pool is an interface for manage information of jobs.
Click to show internal directories.
Click to hide internal directories.