Documentation
¶
Index ¶
- Constants
- func ChildProcessReadConfigViaSTDIN() (*commons.Config, io.WriteCloser, error)
- func ParentProcessSendConfigViaSTDIN(config *commons.Config, stdin io.WriteCloser, stdout io.ReadCloser) error
- func PrintHelp(command *cobra.Command) error
- func PrintVersion(command *cobra.Command) error
- func ProcessCommonFlags(command *cobra.Command) (*commons.Config, io.WriteCloser, bool, error)
- func ReportChildProcessError()
- func ReportChildProcessStartSuccessfully()
- func RunChildProcess(serverExec string) (io.WriteCloser, io.ReadCloser, error)
- func SetCommonFlags(command *cobra.Command)
- func SetNilLogWriter()
- type NilWriter
Constants ¶
View Source
const ( // InterProcessCommunicationFinishSuccess is the message that parent process receives when child process is executed successfully InterProcessCommunicationFinishSuccess string = "<<COMMUNICATION_CLOSE_SUCCESS>>" // InterProcessCommunicationFinishError is the message that parent process receives when child process fails to run InterProcessCommunicationFinishError string = "<<COMMUNICATION_CLOSE_ERROR>>" )
View Source
const (
ChildProcessArgument = "child_process"
)
Variables ¶
This section is empty.
Functions ¶
func ChildProcessReadConfigViaSTDIN ¶
func ChildProcessReadConfigViaSTDIN() (*commons.Config, io.WriteCloser, error)
func ParentProcessSendConfigViaSTDIN ¶
func ParentProcessSendConfigViaSTDIN(config *commons.Config, stdin io.WriteCloser, stdout io.ReadCloser) error
func PrintVersion ¶
func ProcessCommonFlags ¶
func ReportChildProcessError ¶
func ReportChildProcessError()
func ReportChildProcessStartSuccessfully ¶
func ReportChildProcessStartSuccessfully()
func RunChildProcess ¶
func RunChildProcess(serverExec string) (io.WriteCloser, io.ReadCloser, error)
func SetCommonFlags ¶
func SetNilLogWriter ¶
func SetNilLogWriter()
Types ¶
Click to show internal directories.
Click to hide internal directories.