Versions in this module Expand all Collapse all v1 v1.0.1 Feb 10, 2022 Changes in this version + var ErrAlreadyInstalled = errors.New("Service has already been installed") + var ErrAlreadyRunning = errors.New("Service is already running") + var ErrAlreadyStopped = errors.New("Service has already been stopped") + var ErrNotInstalled = errors.New("Service is not installed") + var ErrRootPrivileges = errors.New(...) + var ErrUnsupportedSystem = errors.New("Unsupported system") + var WinErrCode = map[int]SystemError — windows/amd64 + func ExecPath() (string, error) + type Daemon interface + GetTemplate func() string + Install func(args ...string) (string, error) + Remove func() (string, error) + Run func(e Executable) (string, error) + SetTemplate func(string) error + Start func() (string, error) + Status func() (string, error) + Stop func() (string, error) + func New(name, description string, kind Kind, dependencies ...string) (Daemon, error) + type Executable interface + Run func() + Start func() + Stop func() + type Kind string + const GlobalAgent + const GlobalDaemon + const SystemDaemon + const UserAgent + type SystemError struct — windows/amd64 + Action string + Description string + Title string