Documentation
¶
Index ¶
- type Client
- func (c *Client) DeleteGroupJob(jobID string, purge bool) error
- func (c *Client) DeleteJob(jobID string, purge bool) error
- func (c *Client) GetGroupStatus(groupID string) (models.GroupStatusResp, error)
- func (c *Client) GetJobStatus(jobID string) (models.JobStatusResp, error)
- func (c *Client) GetPendingJobs(queue string) ([]tasqueue.JobMessage, error)
- func (c *Client) PostJob(j models.JobReq) (models.JobResp, error)
- func (c *Client) PostJobGroup(jobs models.GroupReq) (models.GroupResp, error)
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the SQL Jobber API client.
func (*Client) DeleteGroupJob ¶
DeleteGroupJob deletes group job and its child jobs.
func (*Client) GetGroupStatus ¶
func (c *Client) GetGroupStatus(groupID string) (models.GroupStatusResp, error)
GetGroupStatus fetches the status of a group of job.
func (*Client) GetJobStatus ¶
func (c *Client) GetJobStatus(jobID string) (models.JobStatusResp, error)
GetJobStatus fetches the status of a job.
func (*Client) GetPendingJobs ¶
GetPendingJobs fetches the list of pending jobs.
Click to show internal directories.
Click to hide internal directories.