exporter

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeIndex added in v0.1.0

func ServeIndex(w http.ResponseWriter, req *http.Request)

ServeIndex serves index page

Types

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

Exporter is the type to be used to start HTTP server and run the analysis

func NewExporter

func NewExporter(paths map[string]int, followSymlinks bool) *Exporter

NewExporter creates new Exporter

func (*Exporter) RunServer added in v0.1.0

func (e *Exporter) RunServer(addr string)

RunServer starts HTTP server loop

func (*Exporter) ServeHTTP added in v0.1.0

func (e *Exporter) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*Exporter) SetBasicAuth added in v0.6.0

func (e *Exporter) SetBasicAuth(users map[string]string)

SetBasicAuth sets Basic Auth credentials

func (*Exporter) SetIgnoreDirPaths

func (e *Exporter) SetIgnoreDirPaths(paths []string)

SetIgnoreDirPaths sets paths to ignore

func (*Exporter) WriteToTextfile added in v0.3.0

func (e *Exporter) WriteToTextfile(name string)

WriteToTextfile writes the prometheus report to file

Jump to

Keyboard shortcuts

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