Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Index ¶
func Index(w http.ResponseWriter, r *http.Request)
Index ... / endpoint, serves up the HTML page
func LogRequest ¶
func LogRequest(next http.HandlerFunc) http.HandlerFunc
LogRequest ... Request logging middleware.
Types ¶
type CachePayload ¶
CachePayload ... Cache DTO
type JobController ¶
type JobController struct {
// contains filtered or unexported fields
}
JobController ... /jobs endpoint controller.
func NewJobController ¶
func NewJobController(c cache.JobCacher, o Outcomer) *JobController
NewJobController ... Make a new job controller
func (*JobController) All ¶
func (j *JobController) All(w http.ResponseWriter, r *http.Request)
All ... /jobs endpoint, returns entire job cache as JSON
func (*JobController) Detail ¶
func (j *JobController) Detail(w http.ResponseWriter, r *http.Request)
Detail ... /job/:id?start_dt&start_tm
func (*JobController) Since ¶
func (j *JobController) Since(w http.ResponseWriter, r *http.Request)
Since ... /jobs?since=20170728
type OutcomePayload ¶
type OutcomePayload struct { JobID string `json:"job_id"` JobName string `json:"name"` StepID int `json:"step_id"` Name string `json:"step_name"` Message string `json:"message"` RunDate time.Time `json:"run_date"` Duration int `json:"run_duration"` Result string `json:"run_result"` }
OutcomePayload ... Job outcome payload
func NewOutcomePayload ¶
func NewOutcomePayload(outcomes []*model.Outcome) []*OutcomePayload
NewOutcomePayload ...
Click to show internal directories.
Click to hide internal directories.