monitorism

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoopIntervalMsecFlagName = "loop.interval.msec"
)

Variables

This section is empty.

Functions

func DefaultCLIFlags

func DefaultCLIFlags(envVarPrefix string) []cli.Flag

func NewCliApp

func NewCliApp(ctx *cli.Context, log log.Logger, registry *prometheus.Registry, monitor Monitor) (cliapp.Lifecycle, error)

Types

type Monitor

type Monitor interface {
	Run(context.Context)
	Close(context.Context) error
}

Jump to

Keyboard shortcuts

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