prometheus

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server holds a metrics server configuration

func New

func New(store storage.ListManager, numOfTargets int) *Server

New instance of server

func (*Server) ReceiveResults

func (s *Server) ReceiveResults(res metrics.ResMsg) error

ReceiveResults receives data from a finished scan. It also receive the number of targets declared in config file.

func (*Server) StartServ

func (s *Server) StartServ(nTargets int) error

StartServ starts the prometheus server.

Jump to

Keyboard shortcuts

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