observer

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("observer",
	fx.Provide(provideObserverConfigs),
	fx.Invoke(
		serverobserver.New,
		instanceobserver.New,
		probeobserver.New,
	),
	fx.Provide(NewObserver),
)

Functions

func Run

func Run(
	stop chan struct{},
	stopped chan struct{},
	clock clockwork.Clock,
	logger *zerolog.Logger,
	collector *metrics.Collector,
	cfg config.Config,
)

Types

type Observer

type Observer struct{}

func NewObserver

func NewObserver(
	lc fx.Lifecycle,
	cfg config.Config,
	clock clockwork.Clock,
	collector *metrics.Collector,
	logger *zerolog.Logger,
) *Observer

type Opts

type Opts struct {
	fx.Out

	ServerObserverOpts serverobserver.Opts
}

Jump to

Keyboard shortcuts

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