Versions in this module Expand all Collapse all v1 v1.0.8 Mar 17, 2024 Changes in this version + const RPCPath + const ReConnSleepTime + var ErrCallCanceled = errors.New("ctx canceled") + type AllProcessInfoReply struct + AllProcessInfo []types.ProcessInfo + type ChangeAllProcessStateArg struct + Wait bool + type ChangeAllProcessStateRet AllProcessInfoReply + type ChangeProcessStateArg struct + Name string + type ChangeProcessStateRet struct + Success bool + type Client interface + Call func(ctx context.Context, serviceMethod string, args interface{}, reply interface{}) error + Close func() error + SetAuth func(username, passwd string) + func NewClient(address string) Client + func NewHTTPClient(address string) Client + func NewTlsClient(protocol, address string, config *tls.Config) Client + type GetAllProcessInfoArg struct + type GetAllProcessInfoRet AllProcessInfoReply + type GetEnvArg struct + Key string + type GetEnvRet struct + Value string + type GetProcessInfoArg struct + Name string + type GetProcessInfoRet ProcessInfoReply + type GetVersionArg struct + type GetVersionRet struct + Version string + type ProcessInfoReply struct + ProcessInfo *types.ProcessInfo + type RPCClient struct + func NewRPCClient(serverurl, user, passwd string, verbose bool) *RPCClient + func (r *RPCClient) ChangeAllProcessState(change string) (*ChangeAllProcessStateRet, error) + func (r *RPCClient) ChangeProcessState(change string, processName string) (*ChangeProcessStateRet, error) + func (r *RPCClient) GetAllProcessInfo() (*GetAllProcessInfoRet, error) + func (r *RPCClient) GetEnv(in *GetEnvArg) (*GetEnvRet, error) + func (r *RPCClient) GetProcessInfo(in *GetProcessInfoArg) (*GetProcessInfoRet, error) + func (r *RPCClient) GetVersion() (*GetVersionRet, error) + func (r *RPCClient) ReloadConfig() (*ReloadConfigRet, error) + func (r *RPCClient) SetEnv(in *SetEnvArg) (*SetEnvRet, error) + func (r *RPCClient) Shutdown() (*ShutdownRet, error) + func (r *RPCClient) SignalAllProcesses(in *SignalAllProcessesArg) (*SignalAllProcessesRet, error) + func (r *RPCClient) SignalProcess(in *SignalProcessArg) (*SignalProcessRet, error) + func (r *RPCClient) Url() string + type ReloadConfigArg struct + type ReloadConfigRet types.ReloadConfigResult + type SetEnvArg struct + Key string + Value string + type SetEnvRet struct + type ShutdownArg struct + type ShutdownRet struct + Success bool + type SignalAllProcessesArg struct + Signal string + type SignalAllProcessesRet AllProcessInfoReply + type SignalProcessArg struct + ProcName string + Signal string + type SignalProcessRet types.BooleanReply + type StatusReply struct + Success bool