api

package
v0.0.0-...-43a2903 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRouter

func CreateRouter(svr *Server) http.Handler

Types

type BasicInfo

type BasicInfo struct {
	ID         int64          `json:"id"`
	CreateTime string         `json:"created_time"`
	Status     string         `json:"status"`
	Meta       *BenchmarkMeta `json:"meta"`
}

func NewBasicInfo

func NewBasicInfo(b *BenchmarkJob) *BasicInfo

type BenchJobInfo

type BenchJobInfo struct {
	*BasicInfo
	Result *BenchmarkResult `json:"result"`
}

func NewBenchJobInfo

func NewBenchJobInfo(b *BenchmarkJob) *BenchJobInfo

type BenchmarkHandler

type BenchmarkHandler struct {
	// contains filtered or unexported fields
}

func (*BenchmarkHandler) AbortJob

func (hdl *BenchmarkHandler) AbortJob(w http.ResponseWriter, r *http.Request)

func (*BenchmarkHandler) GetJob

func (hdl *BenchmarkHandler) GetJob(w http.ResponseWriter, r *http.Request)

func (*BenchmarkHandler) GetJobs

func (hdl *BenchmarkHandler) GetJobs(w http.ResponseWriter, r *http.Request)

func (*BenchmarkHandler) GetStatus

func (hdl *BenchmarkHandler) GetStatus(w http.ResponseWriter, r *http.Request)

func (*BenchmarkHandler) ListJobs

func (hdl *BenchmarkHandler) ListJobs(w http.ResponseWriter, r *http.Request)

func (*BenchmarkHandler) Plan

func (hdl *BenchmarkHandler) Plan(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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