Documentation ¶
Index ¶
- func CreateRouter(svr *Server) http.Handler
- type BasicInfo
- type BenchJobInfo
- type BenchmarkHandler
- func (hdl *BenchmarkHandler) AbortJob(w http.ResponseWriter, r *http.Request)
- func (hdl *BenchmarkHandler) GetJob(w http.ResponseWriter, r *http.Request)
- func (hdl *BenchmarkHandler) GetJobs(w http.ResponseWriter, r *http.Request)
- func (hdl *BenchmarkHandler) GetStatus(w http.ResponseWriter, r *http.Request)
- func (hdl *BenchmarkHandler) ListJobs(w http.ResponseWriter, r *http.Request)
- func (hdl *BenchmarkHandler) Plan(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouter ¶
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)
Click to show internal directories.
Click to hide internal directories.