httputil

package
v0.0.0-...-592a62f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobHTTPClient

type JobHTTPClient interface {
	// GetJobDetail sends http request to the specific jobmaster to get job detail
	// path format for get job detail openapi is: 'api/v1/jobs/${JobID}/status'
	// If no error happens and the response status code is 2XX, return the response body as the job detail.
	// Otherwise, return nil and an openapi.HTTPError with code and message.
	GetJobDetail(ctx context.Context, jobMasterAddr string, jobID string) ([]byte, *openapi.HTTPError)
	// Close releases the resources
	Close()
}

JobHTTPClient is the http client for job operations, like 'get job detail'

func NewJobHTTPClient

func NewJobHTTPClient(cli *httputil.Client) JobHTTPClient

NewJobHTTPClient news a JobHTTPClient.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL