server

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScatterPlot = iota
	ContourPlot
	HeatmapPlot
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	store.DB
}

func (*Generator) GetFirst

func (r *Generator) GetFirst() (first time.Time, err error)

func (*Generator) GetLast

func (r *Generator) GetLast() (first time.Time, err error)

func (*Generator) Plot

func (r *Generator) Plot(w io.Writer, plotType PlotType, fold bool, start, stop time.Time) (err error)

type PlotType

type PlotType int

type Server

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

func New

func New(port int, db store.DB) *Server

func (*Server) Collect added in v0.7.0

func (s *Server) Collect(ch chan<- prometheus.Metric)

func (*Server) Describe added in v0.7.0

func (s *Server) Describe(ch chan<- *prometheus.Desc)

func (*Server) Run

func (s *Server) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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