Documentation
¶
Index ¶
- type ClientsPage
- type ClientsPageClient
- type FrontendHandler
- func (fh *FrontendHandler) Clients(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) Index(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) IndexData(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) LogsData(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) Test(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) TestData(w http.ResponseWriter, r *http.Request)
- type IndexPage
- type IndexPageTest
- type Logs
- type LogsEntry
- type TestPage
- type TestPageTask
- type TestPageTaskLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientsPage ¶
type ClientsPage struct {
Clients []*ClientsPageClient `json:"clients"`
ClientCount uint64 `json:"client_count"`
}
type ClientsPageClient ¶
type ClientsPageClient struct {
Index int `json:"index"`
Name string `json:"name"`
CLVersion string `json:"cl_version"`
CLType uint64 `json:"cl_type"`
CLHeadSlot uint64 `json:"cl_head_slot"`
CLHeadRoot []byte `json:"cl_head_root"`
CLStatus string `json:"cl_status"`
CLLastRefresh time.Time `json:"cl_refresh"`
CLLastError string `json:"cl_error"`
CLIsReady bool `json:"cl_ready"`
ELVersion string `json:"el_version"`
ELType uint64 `json:"el_type"`
ELHeadNumber uint64 `json:"el_head_number"`
ELHeadHash []byte `json:"el_head_hash"`
ELStatus string `json:"el_status"`
ELLastRefresh time.Time `json:"el_refresh"`
ELLastError string `json:"el_error"`
ELIsReady bool `json:"el_ready"`
}
type FrontendHandler ¶
type FrontendHandler struct {
// contains filtered or unexported fields
}
func NewFrontendHandler ¶
func NewFrontendHandler(coordinator types.Coordinator) *FrontendHandler
func (*FrontendHandler) Clients ¶
func (fh *FrontendHandler) Clients(w http.ResponseWriter, r *http.Request)
Clients will return the "clients" page using a go template
func (*FrontendHandler) Index ¶
func (fh *FrontendHandler) Index(w http.ResponseWriter, r *http.Request)
Index will return the "index" page using a go template
func (*FrontendHandler) IndexData ¶
func (fh *FrontendHandler) IndexData(w http.ResponseWriter, r *http.Request)
func (*FrontendHandler) LogsData ¶
func (fh *FrontendHandler) LogsData(w http.ResponseWriter, r *http.Request)
func (*FrontendHandler) Test ¶
func (fh *FrontendHandler) Test(w http.ResponseWriter, r *http.Request)
Test will return the "test" page using a go template
func (*FrontendHandler) TestData ¶
func (fh *FrontendHandler) TestData(w http.ResponseWriter, r *http.Request)
type IndexPage ¶
type IndexPage struct {
ClientCount uint64 `json:"client_count"`
CLReadyCount uint64 `json:"cl_ready_count"`
CLHeadSlot uint64 `json:"cl_head_slot"`
CLHeadRoot []byte `json:"cl_head_root"`
ELReadyCount uint64 `json:"el_ready_count"`
ELHeadNumber uint64 `json:"el_head_number"`
ELHeadHash []byte `json:"el_head_hash"`
Tests []*IndexPageTest `json:"tests"`
}
type IndexPageTest ¶
type IndexPageTest struct {
Index uint64 `json:"index"`
Name string `json:"name"`
IsStarted bool `json:"started"`
IsCompleted bool `json:"completed"`
StartTime time.Time `json:"start_time"`
StopTime time.Time `json:"stop_time"`
Timeout time.Duration `json:"timeout"`
HasTimeout bool `json:"has_timeout"`
RunTime time.Duration `json:"runtime"`
HasRunTime bool `json:"has_runtime"`
Status string `json:"status"`
TaskCount uint64 `json:"task_count"`
}
type TestPage ¶
type TestPage struct {
Index uint64 `json:"index"`
Name string `json:"name"`
IsStarted bool `json:"started"`
IsCompleted bool `json:"completed"`
StartTime time.Time `json:"start_time"`
StopTime time.Time `json:"stop_time"`
Timeout time.Duration `json:"timeout"`
Status string `json:"status"`
Tasks []*TestPageTask `json:"tasks"`
}
type TestPageTask ¶
type TestPageTask struct {
Index uint64 `json:"index"`
ParentIndex uint64 `json:"parent_index"`
IndentPx uint64 `json:"indent_px"`
Name string `json:"name"`
Title string `json:"title"`
IsStarted bool `json:"started"`
IsCompleted bool `json:"completed"`
StartTime time.Time `json:"start_time"`
StopTime time.Time `json:"stop_time"`
Timeout time.Duration `json:"timeout"`
HasTimeout bool `json:"has_timeout"`
RunTime time.Duration `json:"runtime"`
HasRunTime bool `json:"has_runtime"`
Status string `json:"status"`
Result string `json:"result"`
ResultError string `json:"result_error"`
Log []*TestPageTaskLog `json:"log"`
}
Click to show internal directories.
Click to hide internal directories.