sysmon

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const LoggerTag = "SYSMON"

Variables

This section is empty.

Functions

This section is empty.

Types

type Sysmon

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

Sysmon is a system monitor. It periodically logs system status. It works only if the logger uses the debug level.

func New

func New(interval time.Duration, logger log.Logger) *Sysmon

New returns a new instance of Sysmon.

func (*Sysmon) Start

func (s *Sysmon) Start(ctx context.Context) error

Start implements the supervisor.Service interface.

func (*Sysmon) Wait

func (s *Sysmon) Wait() <-chan error

Wait implements the supervisor.Service interface.

Jump to

Keyboard shortcuts

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