Documentation ¶
Index ¶
- type Redis
- func (rs *Redis) CheckHealth() bool
- func (rs *Redis) Close() error
- func (rs *Redis) CreateJob(j *domain.Job) error
- func (rs *Redis) CreateJobResult(result *domain.JobResult) error
- func (rs *Redis) DeleteJob(id string) error
- func (rs *Redis) DeleteJobResult(jobID string) error
- func (rs *Redis) GetDueJobs() ([]*domain.Job, error)
- func (rs *Redis) GetJob(id string) (*domain.Job, error)
- func (rs *Redis) GetJobResult(jobID string) (*domain.JobResult, error)
- func (rs *Redis) GetJobs(status domain.JobStatus) ([]*domain.Job, error)
- func (rs *Redis) UpdateJob(id string, j *domain.Job) error
- func (rs *Redis) UpdateJobResult(jobID string, result *domain.JobResult) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct { KeyPrefix string // contains filtered or unexported fields }
Redis represents a redis client.
func (*Redis) CheckHealth ¶
CheckHealth returns the status of redis.
func (*Redis) CreateJobResult ¶
CreateJobResult adds a new job result to the repository.
func (*Redis) DeleteJobResult ¶
DeleteJobResult deletes a job result from the repository.
func (*Redis) GetDueJobs ¶
GetDueJobs fetches all jobs scheduled to run before now and have not been scheduled yet.
func (*Redis) GetJobResult ¶
GetJobResult fetches a job result from the repository.
func (*Redis) GetJobs ¶
GetJobs fetches all jobs from the repository, optionally filters the jobs by status.
Click to show internal directories.
Click to hide internal directories.