service

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

type Scheduler interface {
	Install(interval time.Duration, binaryPath string) error
	Uninstall() error
	Status() (*Status, error)
}

Scheduler manages an OS-native scheduled task for background sync+inject.

func New

func New(cacheDir string) Scheduler

New returns the platform-appropriate Scheduler for the given cache directory. cacheDir is used for the daemon log path.

type Status

type Status struct {
	Installed bool
	LastRun   time.Time // zero value if unknown or never run
	NextRun   time.Time // zero value if unknown
}

Status describes the current state of the OS scheduler entry.

Jump to

Keyboard shortcuts

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