Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
func HandleError(w http.ResponseWriter, r *http.Request, err error)
HandleError central handler for all errors
func MetricsHandler ¶
func MetricsHandler(w http.ResponseWriter, r *http.Request)
MetricsHandler proxies Prometheus metrics from the internal exporter so callers can scrape /metrics on the main HTTP server.
Types ¶
type Options ¶
type Options struct {
JobsRoot string
JobsInvocation *jobregistry.IndexBuildInvocation
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the HTTP server
func NewWithOptions ¶
NewWithOptions creates a new HTTP server instance with optional subsystems.
Click to show internal directories.
Click to hide internal directories.