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 }
Click to show internal directories.
Click to hide internal directories.