handlers

package
v0.0.0-...-ed0f381 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: BSD-3-Clause Imports: 14 Imported by: 0

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]

Jump to

Keyboard shortcuts

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