sysmon

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: AGPL-3.0 Imports: 7 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 logs basic system and runtime metrics.

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