daemon

package
v0.0.0-...-4bffaba Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAndRunDaemonService

func RegisterAndRunDaemonService(executable string, args []string, daemonConfig *service.Config, updater Updater, logger *log.Logger)

RegisterAndRunDaemonService that runs the given executable with given args and updates according to the Updater function Needs kardianos/service.Config

Types

type Updater

type Updater func() (io.Reader, bool, error)

Updater is a function that returns a reader, newupdate and error

Jump to

Keyboard shortcuts

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