daemon

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 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

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

Types

type Config

type Config struct {
	XMLName              xml.Name              `xml:"configuration"`
	Id                   string                `xml:"id"`
	Name                 string                `xml:"name"`
	Description          string                `xml:"description"`
	Executable           string                `xml:"executable"`
	Arguments            []string              `xml:"argument"`
	StartMode            string                `xml:"startmode"`
	LogPath              string                `xml:"logpath"`
	LogMode              string                `xml:"logmode"`
	EnvironmentVariables []EnvironmentVariable `xml:"env"`
}

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 EnvironmentVariable added in v0.0.14

type EnvironmentVariable struct {
	Key   string `xml:"name,attr"`
	Value string `xml:"value,attr"`
}

type WinSW

type WinSW struct {
	BinaryPath  string
	ServicesDir string
}

func NewWinSW

func NewWinSW(cfDevHome string) *WinSW

func (*WinSW) AddDaemon

func (w *WinSW) AddDaemon(spec DaemonSpec) error

func (*WinSW) IsRunning

func (w *WinSW) IsRunning(label string) (bool, error)

func (*WinSW) RemoveDaemon

func (w *WinSW) RemoveDaemon(label string) error

func (*WinSW) Start

func (w *WinSW) Start(label string) error

func (*WinSW) Stop

func (w *WinSW) Stop(label string) error

Jump to

Keyboard shortcuts

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