internal

package
v0.0.0-...-aae289c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(err error, format string, args ...any)

Types

type Command

type Command struct {
	Cmd     string
	Home    string
	Args    []string
	Expire  string // 进程最大运行时长,如 1h
	Next    string // 下次运行的时间间隔,如 1h
	Actions actions
}

func (Command) Run

func (c Command) Run(ctxRoot context.Context, name string) error

type ConfigFile

type ConfigFile struct {
	Workers map[string]Command
}

func LoadConfig

func LoadConfig(fp string) *ConfigFile

func (*ConfigFile) Run

func (cf *ConfigFile) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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