Versions in this module Expand all Collapse all v0 v0.6.3 Apr 7, 2019 Changes in this version + const SUPERVISOR_VERSION + const VERSION + func Deamonize(proc func()) + func GenTemplate(writer io.Writer) error + func LoadEnvFile() + func NewHttpBasicAuth(user string, password string, handler http.Handler) *httpBasicAuth + func RunServer() + type BaseChecker struct + func NewBaseChecker(includes []string, timeout int) *BaseChecker + func (bc *BaseChecker) Check() bool + func (bc *BaseChecker) Write(b []byte) (int, error) + type ContentChecker interface + Check func() bool + type CtlCommand struct + Password string + ServerUrl string + User string + Verbose bool + func (x *CtlCommand) Execute(args []string) error + type HttpChecker struct + func NewHttpChecker(url string, timeout int) *HttpChecker + func (hc *HttpChecker) Check() bool + type InitTemplateCommand struct + OutFile string + func (x *InitTemplateCommand) Execute(args []string) error + type LogReadInfo struct + Length int + Offset int + type Options struct + Configuration string + Daemon bool + EnvFile string + type PidCommand struct + func (pc *PidCommand) Execute(args []string) error + type ProcessLogReadInfo struct + Length int + Name string + Offset int + type ProcessStdin struct + Chars string + Name string + type ProcessTailLog struct + LogData string + Offset int64 + Overflow bool + type ReloadCommand struct + func (rc *ReloadCommand) Execute(args []string) error + type RemoteCommEvent struct + Data string + Type string + type RpcTaskResult struct + Description string + Group string + Name string + Status int + type ScriptChecker struct + func NewScriptChecker(args []string) *ScriptChecker + func (sc *ScriptChecker) Check() bool + type ShutdownCommand struct + func (sc *ShutdownCommand) Execute(args []string) error + type SignalCommand struct + func (rc *SignalCommand) Execute(args []string) error + type StartCommand struct + func (sc *StartCommand) Execute(args []string) error + type StartProcessArgs struct + Name string + Wait bool + type StateInfo struct + Statecode int + Statename string + type StatusCommand struct + func (sc *StatusCommand) Execute(args []string) error + type StopCommand struct + func (sc *StopCommand) Execute(args []string) error + type Supervisor struct + func NewSupervisor(configFile string) *Supervisor + func (s *Supervisor) AddProcessGroup(r *http.Request, args *struct{ Name string }, reply *struct{ Success bool }) error + func (s *Supervisor) ClearAllProcessLogs(r *http.Request, args *struct{}, ...) error + func (s *Supervisor) ClearLog(r *http.Request, args *struct{}, reply *struct{ Ret bool }) error + func (s *Supervisor) ClearProcessLogs(r *http.Request, args *struct{ Name string }, reply *struct{ Success bool }) error + func (s *Supervisor) GetAllProcessInfo(r *http.Request, args *struct{}, ...) error + func (s *Supervisor) GetConfig() *config.Config + func (s *Supervisor) GetIdentification(r *http.Request, args *struct{}, reply *struct{ Id string }) error + func (s *Supervisor) GetPID(r *http.Request, args *struct{}, reply *struct{ Pid int }) error + func (s *Supervisor) GetProcessInfo(r *http.Request, args *struct{ Name string }, ...) error + func (s *Supervisor) GetPrograms() []string + func (s *Supervisor) GetState(r *http.Request, args *struct{}, reply *struct{ StateInfo StateInfo }) error + func (s *Supervisor) GetSupervisorId() string + func (s *Supervisor) GetSupervisorVersion(r *http.Request, args *struct{}, reply *struct{ Version string }) error + func (s *Supervisor) GetVersion(r *http.Request, args *struct{}, reply *struct{ Version string }) error + func (s *Supervisor) IsRestarting() bool + func (s *Supervisor) ReadLog(r *http.Request, args *LogReadInfo, reply *struct{ Log string }) error + func (s *Supervisor) ReadProcessStderrLog(r *http.Request, args *ProcessLogReadInfo, reply *struct{ LogData string }) error + func (s *Supervisor) ReadProcessStdoutLog(r *http.Request, args *ProcessLogReadInfo, reply *struct{ LogData string }) error + func (s *Supervisor) Reload() (error, []string, []string, []string) + func (s *Supervisor) ReloadConfig(r *http.Request, args *struct{}, reply *types.ReloadConfigResult) error + func (s *Supervisor) RemoveProcessGroup(r *http.Request, args *struct{ Name string }, reply *struct{ Success bool }) error + func (s *Supervisor) Restart(r *http.Request, args *struct{}, reply *struct{ Ret bool }) error + func (s *Supervisor) SendProcessStdin(r *http.Request, args *ProcessStdin, reply *struct{ Success bool }) error + func (s *Supervisor) SendRemoteCommEvent(r *http.Request, args *RemoteCommEvent, reply *struct{ Success bool }) error + func (s *Supervisor) Shutdown(r *http.Request, args *struct{}, reply *struct{ Ret bool }) error + func (s *Supervisor) SignalAllProcesses(r *http.Request, args *types.ProcessSignal, ...) error + func (s *Supervisor) SignalProcess(r *http.Request, args *types.ProcessSignal, reply *struct{ Success bool }) error + func (s *Supervisor) SignalProcessGroup(r *http.Request, args *types.ProcessSignal, ...) error + func (s *Supervisor) StartAllProcesses(r *http.Request, args ..., reply *struct{ RpcTaskResults []RpcTaskResult }) error + func (s *Supervisor) StartProcess(r *http.Request, args *StartProcessArgs, reply *struct{ Success bool }) error + func (s *Supervisor) StartProcessGroup(r *http.Request, args *StartProcessArgs, ...) error + func (s *Supervisor) StopAllProcesses(r *http.Request, args ..., reply *struct{ RpcTaskResults []RpcTaskResult }) error + func (s *Supervisor) StopProcess(r *http.Request, args *StartProcessArgs, reply *struct{ Success bool }) error + func (s *Supervisor) StopProcessGroup(r *http.Request, args *StartProcessArgs, ...) error + func (s *Supervisor) TailProcessStdoutLog(r *http.Request, args *ProcessLogReadInfo, reply *ProcessTailLog) error + func (s *Supervisor) WaitForExit() + type SupervisorRestful struct + func NewSupervisorRestful(supervisor *Supervisor) *SupervisorRestful + func (sr *SupervisorRestful) CreateProgramHandler() http.Handler + func (sr *SupervisorRestful) CreateSupervisorHandler() http.Handler + func (sr *SupervisorRestful) ListProgram(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) ReadStdoutLog(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) Reload(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) Shutdown(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) StartProgram(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) StartPrograms(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) StopProgram(w http.ResponseWriter, req *http.Request) + func (sr *SupervisorRestful) StopPrograms(w http.ResponseWriter, req *http.Request) + type SupervisorWebgui struct + func NewSupervisorWebgui(supervisor *Supervisor) *SupervisorWebgui + func (sw *SupervisorWebgui) CreateHandler() http.Handler + type TcpChecker struct + func NewTcpChecker(host string, port int, includes []string, timeout int) *TcpChecker + func (tc *TcpChecker) Check() bool + type VersionCommand struct + func (v VersionCommand) Execute(args []string) error + type XmlRPC struct + func NewXmlRPC() *XmlRPC + func (p *XmlRPC) StartInetHttpServer(user string, password string, listenAddr string, s *Supervisor) + func (p *XmlRPC) StartUnixHttpServer(user string, password string, listenAddr string, s *Supervisor) + func (p *XmlRPC) Stop() v0.6.2 Apr 7, 2019