runners

package
v0.0.0-...-b019d3a Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func NewCommand

func NewCommand(path string) (*Command, error)

func (Command) Exec

func (h Command) Exec() ([]byte, error)

func (Command) String

func (h Command) String() string

type CommandRunner

type CommandRunner struct {
	Log             *zap.Logger
	DB              *db.Bolt
	MailNotificator *email.Notificator
	Command         *Command
	Name            string
	Threshold       uint
	ThresholdSleep  time.Duration
	Timeout         time.Duration
	Interval        time.Duration
	CronSchedule    cron.Schedule
	Notifications   []string
}

func (CommandRunner) Run

func (c CommandRunner) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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