metrics

package
v0.0.0-...-c347dc3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("metrics", fx.Provide(
	NewMetricsCollector,
))

Functions

This section is empty.

Types

type MetricsCollector

type MetricsCollector struct {
	Prom *prometheus.Prometheus

	SoundStore *soundstore.SoundStore
	// contains filtered or unexported fields
}

func NewMetricsCollector

func NewMetricsCollector(params NewMetricsCollectorParams) *MetricsCollector

func (*MetricsCollector) PlaySound

func (m *MetricsCollector) PlaySound(GuildID, SoundName string)

func (*MetricsCollector) RegisterGuild

func (m *MetricsCollector) RegisterGuild(GuildID string) error

func (*MetricsCollector) RegisterPlaySound

func (m *MetricsCollector) RegisterPlaySound(GuildID, SoundName string) (pprom.Counter, error)

type NewMetricsCollectorParams

type NewMetricsCollectorParams struct {
	fx.In

	Prometheus *prometheus.Prometheus
	SoundStore *soundstore.SoundStore
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳