Documentation
¶
Index ¶
- func NewLog(path string) *os.File
- func WithArgs(s ...string) func(cfg *Config) error
- func WithKillSignal(i int) func(cfg *Config) error
- func WithName(s string) func(cfg *Config) error
- func WithSTDIN(f *os.File) func(cfg *Config) error
- func WithStateDir(s string) func(cfg *Config) error
- func WithTemporaryStateDir() func(cfg *Config) error
- func WithWorkDir(s string) func(cfg *Config) error
- type Config
- type Option
- type Process
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithKillSignal ¶
WithKillSignal sets the given signal while attemping to stop. Defaults to 9
func WithStateDir ¶
func WithTemporaryStateDir ¶
func WithWorkDir ¶
Types ¶
type Config ¶
type Config struct { Name string Args []string Combined bool StateDir string KillSignal *int Environment []string Stdin *os.File WorkDir string }
func DefaultConfig ¶
func DefaultConfig() *Config
type Option ¶
func WithEnvironment ¶
type Process ¶
type Process struct { PID string // contains filtered or unexported fields }
func (*Process) StderrPath ¶
StderrPath returns the file where the stderr of the process is appended to
func (*Process) StdoutPath ¶
StdoutPath returns the file where the stdout is appended to
Click to show internal directories.
Click to hide internal directories.