Documentation ¶
Index ¶
Constants ¶
View Source
const ( MSG_OUT = iota MSG_STDERR MSG_EXIT PIPE_STDERR PIPE_STDOUT )
View Source
const ( STOPPED = iota STARTING = iota RUNNING = iota BACKOFF = iota STOPPING = iota EXITED = iota FATAL = iota UNKNOWN = iota )
View Source
const ( CMD_START = iota CMD_STOP RESP_SUCCESS RESP_FAIL )
Variables ¶
This section is empty.
Functions ¶
func StartService ¶
func StartService(r *Runner)
Types ¶
type Config ¶
type Config struct {
Ps []*ProcessConfig
}
type ExitMessage ¶
type ExitMessage struct {
ProcessState *os.ProcessState
}
func (*ExitMessage) Type ¶
func (m *ExitMessage) Type() int
type PipeMessage ¶
func (*PipeMessage) Type ¶
func (m *PipeMessage) Type() int
type Process ¶
type Process struct { In io.Reader Out io.Writer Err io.Writer }
func NewProcess ¶
func NewProcess(conf *ProcessConfig, master *ProcessLauncher) *Process
type ProcessConfig ¶
type ProcessLauncher ¶
type ProcessLauncher struct {
Feedback chan Message
}
func NewProcessLauncher ¶
func NewProcessLauncher() *ProcessLauncher
func (*ProcessLauncher) Launch ¶
func (m *ProcessLauncher) Launch(conf *ProcessConfig) (*Process, error)
type Service ¶
type Service struct { Config ServiceConfig Runner *Runner }
type ServiceConfig ¶
func (*ServiceConfig) HostPort ¶
func (sc *ServiceConfig) HostPort() string
Click to show internal directories.
Click to hide internal directories.