daemon

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 0 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:"arguments"`
	StartMode   string   `xml:"startmode"`
}

type DaemonSpec

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

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