autorun

package
v3.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package autorun contains code to manage automatic runs

Index

Constants

View Source
const (
	// StatusScheduled indicates that OONI is scheduled to run
	// periodically in the background.
	StatusScheduled = "scheduled"

	// StatusStopped indicates that OONI is not scheduled to
	// run periodically in the background.
	StatusStopped = "stopped"

	// StatusRunning indicates that OONI is currently
	// running in the background.
	StatusRunning = "running"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	LogShow() error
	LogStream() error
	Start() error
	Status() (string, error)
	Stop() error
}

Manager manages automatic runs

func Get

func Get(platform string) Manager

Get gets the specified autorun manager. This function returns nil if no autorun manager exists.

Jump to

Keyboard shortcuts

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