metricserver

package
v0.0.0-...-0aa8bca Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMetricServer

func RunMetricServer(cfg *Config)

Types

type Config

type Config struct {
	Port          int
	NewWebService newWebServiceFunc
	Router        router.Registrator
}

func GetDefaultConfig

func GetDefaultConfig(port int) *Config

type Metric

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

func NewHandler

func NewHandler() *Metric

func (*Metric) HandlerHealthCheck

func (p *Metric) HandlerHealthCheck(w http.ResponseWriter, r *http.Request) response.HTTPResponse

func (*Metric) HandlerMetrics

func (p *Metric) HandlerMetrics(w http.ResponseWriter, r *http.Request) response.HTTPResponse

func (*Metric) Register

func (p *Metric) Register(rr router.Registrator)

type RunMetricServerFunc

type RunMetricServerFunc func(cfg *Config)

Jump to

Keyboard shortcuts

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