Help us shape the future of Go! Take the 2026 Go Developer Survey

metrics

package
v1.3.99 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package metrics pkg/dmsg/disc/metrics/empty.go c1-net-dmsg

Package metrics pkg/dmsg/disc/metrics/metrics.go c1-net-dmsg

Package metrics pkg/dmsg/disc/metrics/victoria_metrics.go c1-net-dmsg

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct{}

Empty implements Metrics, but does nothing.

func NewEmpty

func NewEmpty() Empty

NewEmpty constructs new empty metrics.

func (Empty) SetClientsCount

func (Empty) SetClientsCount(_ int64)

SetClientsCount implements `Metrics`.

func (Empty) SetServersCount

func (Empty) SetServersCount(_ int64)

SetServersCount implements `Metrics`.

type Metrics

type Metrics interface {
	SetClientsCount(val int64)
	SetServersCount(val int64)
}

Metrics collects metrics for metrics tracking system.

type VictoriaMetrics

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

VictoriaMetrics implements `Metrics` using `VictoriaMetrics`.

func NewVictoriaMetrics

func NewVictoriaMetrics() *VictoriaMetrics

NewVictoriaMetrics returns the Victoria Metrics implementation of Metrics.

func (*VictoriaMetrics) SetClientsCount

func (m *VictoriaMetrics) SetClientsCount(val int64)

SetClientsCount implements `Metrics`.

func (*VictoriaMetrics) SetServersCount

func (m *VictoriaMetrics) SetServersCount(val int64)

SetServersCount implements `Metrics`.

Jump to

Keyboard shortcuts

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