metrics

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordError

func RecordError(code, message string, err error)

Types

type Metrics

type Metrics interface {
	Handler() *chi.Mux
	StartMetrics(context.Context, *sync.WaitGroup)
}

func NewMetrics

func NewMetrics() Metrics

type MetricsService

type MetricsService struct {
	Server *http.Server
}

func (*MetricsService) Handler

func (rs *MetricsService) Handler() *chi.Mux

func (*MetricsService) StartMetrics

func (rs *MetricsService) StartMetrics(ctx context.Context, waitGroup *sync.WaitGroup)

Jump to

Keyboard shortcuts

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