Versions in this module Expand all Collapse all v0 v0.0.3 Sep 17, 2019 v0.0.2 Sep 17, 2019 Changes in this version + type DecodableMaster struct + ErrFile string + OutFile string + PidFile string + Procs map[string]*process.Proc + SysFolder string + Watcher *watcher.Watcher + type GoBin struct + Args []string + KeepAlive bool + Name string + SourcePath string + type Master struct + ErrFile string + OutFile string + PidFile string + Procs map[string]process.ProcContainer + SysFolder string + Watcher *watcher.Watcher + func InitMaster(configFile string) *Master + func (master *Master) DeleteProcess(name string) error + func (master *Master) ListProcs() []process.ProcContainer + func (master *Master) Prepare(sourcePath string, name string, language string, keepAlive bool, args []string) (preparable.ProcPreparable, []byte, error) + func (master *Master) RestartProcess(name string) error + func (master *Master) Revive() error + func (master *Master) RunPreparable(procPreparable preparable.ProcPreparable) error + func (master *Master) SaveProcs() error + func (master *Master) SaveProcsLoop() + func (master *Master) StartProcess(name string) error + func (master *Master) Stop() error + func (master *Master) StopProcess(name string) error + func (master *Master) UpdateStatus() + func (master *Master) WatchProcs() + type ProcDataResponse struct + KeepAlive bool + Name string + Pid int + Status *process.ProcStatus + type ProcResponse struct + Procs []*ProcDataResponse + type RemoteClient struct + func StartRemoteClient(dsn string, timeout time.Duration) (*RemoteClient, error) + func (client *RemoteClient) DeleteProcess(procName string) error + func (client *RemoteClient) MonitStatus() (ProcResponse, error) + func (client *RemoteClient) RestartProcess(procName string) error + func (client *RemoteClient) Resurrect() error + func (client *RemoteClient) Save() error + func (client *RemoteClient) StartGoBin(sourcePath string, name string, keepAlive bool, args []string) error + func (client *RemoteClient) StartProcess(procName string) error + func (client *RemoteClient) StopProcess(procName string) error + type RemoteMaster struct + func StartRemoteMasterServer(dsn string, configFile string) *RemoteMaster + func (remote_master *RemoteMaster) DeleteProcess(procName string, ack *bool) error + func (remote_master *RemoteMaster) MonitStatus(req string, response *ProcResponse) error + func (remote_master *RemoteMaster) RestartProcess(procName string, ack *bool) error + func (remote_master *RemoteMaster) Resurrect(req string, ack *bool) error + func (remote_master *RemoteMaster) Save(req string, ack *bool) error + func (remote_master *RemoteMaster) StartGoBin(goBin *GoBin, ack *bool) error + func (remote_master *RemoteMaster) StartProcess(procName string, ack *bool) error + func (remote_master *RemoteMaster) Stop() error + func (remote_master *RemoteMaster) StopProcess(procName string, ack *bool) error