server

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricCollector added in v0.7.0

type MetricCollector struct {
	Collector metric.Collector
	Enabled   bool
	Profile   *profile.Profile
	Store     *store.Store
}

MetricCollector is the metric collector.

func NewMetricCollector added in v0.7.0

func NewMetricCollector(profile *profile.Profile, store *store.Store) MetricCollector

func (*MetricCollector) Collect added in v0.7.0

func (mc *MetricCollector) Collect(_ context.Context, metric *metric.Metric)

type Server

type Server struct {
	Collector *MetricCollector

	Profile *profile.Profile

	Store *store.Store
	// contains filtered or unexported fields
}

func NewServer

func NewServer(profile *profile.Profile) *Server

func (*Server) Run

func (server *Server) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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