collector

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler ...

func New

func New(repo domain.Repository, metrics Metrics, logger *zap.Logger) *Handler

New ...

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context) error

Handle ...

type Metrics

type Metrics interface {
	RecordServersCollected(multiplayer domain.Multiplayer, count int)
	RecordCollectionError(multiplayer domain.Multiplayer)
	RecordInsertError()
}

Metrics is a metrics that Handler writes.

Jump to

Keyboard shortcuts

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