monitor

package
v0.0.0-...-46a4c4e Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 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 Checker

type Checker struct {
	CMD      string
	Options  string
	OkResult string
	Interval time.Duration
	Delay    time.Duration
	// contains filtered or unexported fields
}

Checker service health checker

func (*Checker) Run

func (c *Checker) Run(callback func())

Run check service health

type Service

type Service struct {
	Program       string
	Options       []string
	AdditionalEnv []string

	Checker *Checker
	LogFile io.Writer
	// contains filtered or unexported fields
}

Service a service definition

func (*Service) Run

func (srv *Service) Run() error

Run run service

func (*Service) Stop

func (srv *Service) Stop()

Stop stop service

Jump to

Keyboard shortcuts

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