watchdog

package
v2.33.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Ported from - https://github.com/raulk/go-watchdog

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Module is a fx module that provides annotated Watchdog jobs and triggers Watchdog checks.

Types

type Constructor

type Constructor struct {
	// ConfigKey for config
	ConfigKey string
	// Default config
	DefaultConfig watchdogconfig.WatchdogConfig
}

Constructor holds fields to set up the Watchdog.

type WatchdogIn

type WatchdogIn struct {
	fx.In

	StatusRegistry status.Registry
	JobGroup       *jobs.JobGroup `name:"liveness"`
	Unmarshaller   config.Unmarshaller
	Lifecycle      fx.Lifecycle
}

WatchdogIn holds parameters for setupWatchdog.

Directories

Path Synopsis
+kubebuilder:validation:Optional
+kubebuilder:validation:Optional

Jump to

Keyboard shortcuts

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