checker

package
v0.0.0-...-40ffe1c Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 15 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 {
	PropertiesFilePath string
	Config             *CheckerConfig
	ConcurrentWorkers  int
	ForceRestart       bool

	AllErrorsArray []*error
	// contains filtered or unexported fields
}

func (*Checker) CheckAndRestart

func (c *Checker) CheckAndRestart() error

func (*Checker) List

func (c *Checker) List() error

func (*Checker) NewLogger

func (c *Checker) NewLogger(logger *log.Logger)

func (*Checker) ReportErrors

func (c *Checker) ReportErrors() bool

func (*Checker) String

func (c *Checker) String() string

type CheckerConfig

type CheckerConfig struct {
	Services []*Service     `yaml:"services_list"`
	Mailer   *mailer.Mailer `yaml:"general"`
	// contains filtered or unexported fields
}

func (*CheckerConfig) String

func (c *CheckerConfig) String() string

type ErrNoPidFile

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

func (*ErrNoPidFile) Error

func (e *ErrNoPidFile) Error() string

func (*ErrNoPidFile) String

func (e *ErrNoPidFile) String() string

type ErrNoProcName

type ErrNoProcName struct{}

func (*ErrNoProcName) Error

func (e *ErrNoProcName) Error() string

func (*ErrNoProcName) String

func (e *ErrNoProcName) String() string

type ErrNoStartCmd

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

func (*ErrNoStartCmd) Error

func (e *ErrNoStartCmd) Error() string

func (*ErrNoStartCmd) String

func (e *ErrNoStartCmd) String() string

type ErrSvcRestartedForce

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

func (*ErrSvcRestartedForce) Error

func (e *ErrSvcRestartedForce) Error() string

func (*ErrSvcRestartedForce) String

func (e *ErrSvcRestartedForce) String() string

type ErrZeroPid

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

func (*ErrZeroPid) Error

func (e *ErrZeroPid) Error() string

func (*ErrZeroPid) String

func (e *ErrZeroPid) String() string

type Process

type Process struct {
	Cmd     string
	Cmdline string
	Pid     int
	PPid    int
	ModTime time.Time
}

func (*Process) String

func (p *Process) String() string

type Service

type Service struct {
	ProcessName string   `yaml:"process_name"`
	Description string   `yaml:"description"`
	Disabled    bool     `yaml:"disabled"`
	StartCmd    string   `yaml:"start_cmd"`
	CmdArgs     []string `yaml:"cmd_args"`
	StopCmd     string   `yaml:"stop_cmd"`
	PythonVEnv  string   `yaml:"python_venv"`
	WorkingDir  string   `yaml:"working_directory"`
	PidFile     string   `yaml:"pid_file"`
	EnvList     []string `yaml:"env_vars"`
	MailList    []string `yaml:"mailing_list"`

	Logger *log.Logger
	// contains filtered or unexported fields
}

func (*Service) RestartProcess

func (s *Service) RestartProcess(forceRestart bool) error

func (*Service) String

func (s *Service) String() string

Jump to

Keyboard shortcuts

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