serverobserver

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	ServerLiveness time.Duration
}

type ServerObserver

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

func New

func New(
	collector *metrics.Collector,
	serverRepo repositories.ServerRepository,
	clock clockwork.Clock,
	logger *zerolog.Logger,
	opts Opts,
) ServerObserver

func (ServerObserver) Observe

func (o ServerObserver) Observe(ctx context.Context, m *metrics.Collector)

Jump to

Keyboard shortcuts

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