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

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