Documentation ¶
Index ¶
- type AddCmd
- func (c *AddCmd) Destructor()
- func (c *AddCmd) GenPID() (bool, error)
- func (c *AddCmd) GetCancelFunc() context.CancelFunc
- func (c *AddCmd) GetCmdLongName() string
- func (c *AddCmd) GetCmdShortName() string
- func (c *AddCmd) GetContext() context.Context
- func (c *AddCmd) GetExistingPID() (string, error)
- func (c *AddCmd) GetProcessLockName() string
- func (c *AddCmd) GetProcessName() string
- func (c *AddCmd) PIDDestroy() (bool, error)
- func (c *AddCmd) SetCancelContext(ctx *_context.CancelCtx)
- func (c *AddCmd) StopProcess() (bool, error)
- type CmdOnCreate
- type CmdOnDaemon
- type CmdOnExecute
- type CmdOnRun
- type OnGetProcessName
- type StartupCoreServices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCmd ¶
type AddCmd struct { //Callbacks // That's when daemon it's being called! OnDaemon CmdOnDaemon // That's when execution it's being called! OnExecute CmdOnExecute // That's when we enter Run Mode OnRun CmdOnRun // That's in create mode OnCreate CmdOnCreate OnGetProcessName OnGetProcessName // Args -> are the input arguments received from the caller Args []string ArgsPolicy string // This will be the process name based on what the lock will be made! ProcessName string // Command -> websocket:start Cmd string //Names ShortName string LongName string Name string // it will run the executable from its current location! ./APP RunDaemonFromExecDir bool // This enables startup services EnableStartupServices bool StartupCoreServices StartupCoreServices Command *cobra.Command // should the process be locked!? LockProcess bool // Generate PID based on this Command!? GeneratePID bool // contains filtered or unexported fields }
func (*AddCmd) Destructor ¶
func (c *AddCmd) Destructor()
func (*AddCmd) GetCancelFunc ¶
func (c *AddCmd) GetCancelFunc() context.CancelFunc
func (*AddCmd) GetCmdLongName ¶
func (*AddCmd) GetCmdShortName ¶
func (*AddCmd) GetContext ¶
func (*AddCmd) GetExistingPID ¶
func (*AddCmd) GetProcessLockName ¶
func (*AddCmd) GetProcessName ¶
func (*AddCmd) PIDDestroy ¶
func (*AddCmd) SetCancelContext ¶
func (*AddCmd) StopProcess ¶
type CmdOnCreate ¶
type CmdOnCreate func(*AddCmd)
type CmdOnDaemon ¶
type CmdOnDaemon func(*AddCmd)
type CmdOnExecute ¶
type CmdOnExecute func(cmd *AddCmd)
type OnGetProcessName ¶
type StartupCoreServices ¶
type StartupCoreServices struct { }
StartupCoreServices -> Here we add defined/core services, don't know how right is to do it here... but anyway...
Click to show internal directories.
Click to hide internal directories.