watchdog

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ArmTime       time.Duration `yaml:"arm_time"`       // Def: 10s, min: 1s.
	CheckInterval time.Duration `yaml:"check_interval"` // Def: 5s, min: 100ms.
	DoTLS         bool          `yaml:"do_tls"`
	ExitTime      time.Duration `yaml:"exit_time"` // Def: 15s, min: check*2.
	TcpPort       uint16        `yaml:"tcp_port"`
}

func (*Config) SetDefaults

func (config *Config) SetDefaults()

type Watchdog

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

func New

func New(config Config, logger log.DebugLogger) (*Watchdog, error)

Jump to

Keyboard shortcuts

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