Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter struct {
MetalDialer func() (*metal.Client, error)
Logger *slog.Logger
// contains filtered or unexported fields
}
func (*Reporter) ServeHTTP ¶
func (r *Reporter) ServeHTTP(w http.ResponseWriter, req *http.Request)
ServeHTTP implements the http.Handler interface.
@Summary report template
@Description Renders a report from the named template.
@Parm zone query string false "zone name"
@Parm cluster query string false "cluster name"
@Parm host query string false "host name"
@Success 200 {object} mops.GetReportResponse "report response"
@Router /report/{name} [get]
Click to show internal directories.
Click to hide internal directories.