metrics

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

func New

func New(conf *metrics.Config) (*Metrics, error)

New creates a new instance of the Metrics based on the provided configuration.

func (Metrics) Start

func (s Metrics) Start(_ context.Context) error

Start starts the Metrics by listening for incoming connections.

func (Metrics) Stop

func (s Metrics) Stop(ctx context.Context) error

Stop stops the Metrics gracefully by shutting down the HTTP server.

Jump to

Keyboard shortcuts

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