daemon

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listeners added in v0.0.14

func Listeners(name string) ([]net.Listener, error)

Types

type DaemonSpec

type DaemonSpec struct {
	Label                string
	EnvironmentVariables map[string]string
	Program              string
	ProgramArguments     []string
	SessionType          string
	RunAtLoad            bool
	Sockets              map[string]string
	StdoutPath           string
	StderrPath           string
	LogPath              string
	Options              map[string]interface{}
}

type ServiceWrapper added in v0.0.14

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

func NewServiceWrapper added in v0.0.14

func NewServiceWrapper(cfg config.Config) *ServiceWrapper

func (*ServiceWrapper) AddDaemon added in v0.0.14

func (s *ServiceWrapper) AddDaemon(spec DaemonSpec) error

func (*ServiceWrapper) IsRunning added in v0.0.14

func (s *ServiceWrapper) IsRunning(label string) (bool, error)

func (*ServiceWrapper) RemoveDaemon added in v0.0.14

func (s *ServiceWrapper) RemoveDaemon(label string) error

func (*ServiceWrapper) Start added in v0.0.14

func (s *ServiceWrapper) Start(label string) error

func (*ServiceWrapper) Stop added in v0.0.14

func (s *ServiceWrapper) Stop(label string) error

Jump to

Keyboard shortcuts

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