daemon

package
v0.0.0-...-5a3d5de Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CmdName = "adsysd"

CmdName is the binary name for the daemon.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App encapsulate commands and options of the daemon, which can be controlled by env variables and config files.

func New

func New() App

New registers commands and return a new App.

func (App) Err

func (a App) Err() error

Err returns the potential error returned by the command.

func (App) Hup

func (a App) Hup() (shouldQuit bool)

Hup reloads configuration file on disk and return false to signal you shouldn't quit.

func (App) Quit

func (a App) Quit()

Quit gracefully shutdown the service.

func (App) Run

func (a App) Run() error

Run executes the command and associated process. It returns an error on syntax/usage error.

Jump to

Keyboard shortcuts

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