Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // GetJob send request to server asking for a job to execute. When there are no available jobs, GetJob will gives // ErrNoSuchJob error. When there is a job available, GetJob will return `Job` struct that contains token and spec. // The spec field in `Job` struct is a `ReadCloser`, so you need to close it when it no longer used. You don't have // to close it if `GetJob` gives you an error. GetJob(ctx context.Context, token string) (*Job, error) // SubmitJob send grading result of a job to the server. SubmitJob(ctx context.Context, token string, jobResult JobResult) error }
Client is used for interacting with ugrade server API.
Click to show internal directories.
Click to hide internal directories.