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: 0

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