Documentation ¶
Index ¶
- func RegisterDatabase(m map[string]string, logger *zap.Logger) rkasync.Database
- type Database
- func (e *Database) AddJob(job *rkasync.Job) error
- func (e *Database) CancelJobsOverdue(days int, filter *rkasync.JobFilter) error
- func (e *Database) CleanJobs(days int, filter *rkasync.JobFilter) error
- func (e *Database) DeleteJob(jobId string) error
- func (e *Database) GetJob(id string) (*rkasync.Job, error)
- func (e *Database) GetProcessor(jobType string) rkasync.Processor
- func (e *Database) ListJobs(filter *rkasync.JobFilter) ([]*rkasync.Job, int, error)
- func (e *Database) PickJobToWork() (*rkasync.Job, error)
- func (e *Database) PickJobToWorkWithId(jobId string) (*rkasync.Job, error)
- func (e *Database) RegisterProcessor(jobType string, processor rkasync.Processor)
- func (e *Database) Type() string
- func (e *Database) UpdateJobPayloadAndStep(job *rkasync.Job) error
- func (e *Database) UpdateJobState(job *rkasync.Job) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) CancelJobsOverdue ¶
func (*Database) GetProcessor ¶ added in v0.0.4
func (*Database) PickJobToWork ¶
func (*Database) PickJobToWorkWithId ¶ added in v0.0.26
func (*Database) RegisterProcessor ¶ added in v0.0.4
func (*Database) UpdateJobPayloadAndStep ¶ added in v0.0.22
func (*Database) UpdateJobState ¶
Click to show internal directories.
Click to hide internal directories.