core

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Set = wire.NewSet(New)

Functions

This section is empty.

Types

type Job

type Job struct {
	ID      string        `json:"id"`
	Title   string        `json:"title"`
	Spec    string        `json:"spec"`
	Cmd     string        `json:"cmd"`
	Running bool          `json:"running"`
	Pid     int           `json:"pid"`
	RunCnt  int           `json:"run_cnt"`
	PrevUse time.Duration `json:"prev_use"`
	// contains filtered or unexported fields
}

func (*Job) Exec

func (j *Job) Exec(isManual bool)

type LWrite

type LWrite struct {
	Log func(log []byte)
}

func (*LWrite) Write

func (w *LWrite) Write(c []byte) (n int, err error)

type Manager

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

func New

func New() *Manager

func (*Manager) Exec

func (m *Manager) Exec(id string) error

func (*Manager) GetCronFile

func (m *Manager) GetCronFile() string

func (*Manager) GetJobs

func (m *Manager) GetJobs() []Job

func (*Manager) Start

func (m *Manager) Start(file string) error

Jump to

Keyboard shortcuts

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