Documentation
¶
Index ¶
- type APIError
- type Client
- func (c *Client) CancelJob(ctx context.Context, id string, version int32) (models.JobResponse, error)
- func (c *Client) DeleteJob(ctx context.Context, id string) error
- func (c *Client) GetAttemptLogs(ctx context.Context, jobID, attemptID string, q LogQuery) (models.JobLogListResponse, error)
- func (c *Client) GetHandler(ctx context.Context, name string) (models.HandlerDetailResponse, error)
- func (c *Client) GetHandlers(ctx context.Context) (models.HandlerListResponse, error)
- func (c *Client) GetJob(ctx context.Context, id string) (models.JobResponse, error)
- func (c *Client) GetJobAttempts(ctx context.Context, id string, q PageQuery) (models.JobAttemptListResponse, error)
- func (c *Client) GetJobs(ctx context.Context, q JobQuery) (models.JobListResponse, error)
- func (c *Client) GetQueues(ctx context.Context) (models.QueueListResponse, error)
- func (c *Client) GetWorkers(ctx context.Context) (models.WorkerListResponse, error)
- func (c *Client) PauseJob(ctx context.Context, id string, version int32, paused bool) (models.JobResponse, error)
- func (c *Client) PostJob(ctx context.Context, j models.CreateJobRequest, idempotencyKey string) (models.JobResponse, error)
- func (c *Client) RerunJob(ctx context.Context, id string, version int32) (models.JobResponse, error)
- func (c *Client) RescheduleJob(ctx context.Context, id string, s models.RescheduleRequest) (models.JobResponse, error)
- type JobQuery
- type LogQuery
- type Opt
- type PageQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct {
StatusCode int
models.ErrorResponse
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAttemptLogs ¶
func (*Client) GetHandler ¶
func (*Client) GetHandlers ¶
func (*Client) GetJobAttempts ¶
func (*Client) GetWorkers ¶
func (*Client) PostJob ¶
func (c *Client) PostJob(ctx context.Context, j models.CreateJobRequest, idempotencyKey string) (models.JobResponse, error)
func (*Client) RescheduleJob ¶
func (c *Client) RescheduleJob(ctx context.Context, id string, s models.RescheduleRequest) (models.JobResponse, error)
Click to show internal directories.
Click to hide internal directories.