Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RunChan chan RunChanStruct
RunChan trigger to function.
Functions ¶
Types ¶
type Command ¶
type Command struct { TriggerFn func(context.Context) error Name string Path string Env []string Filter func([]byte) bool Command []string ExitCode int // contains filtered or unexported fields }
func (*Command) SetContext ¶
func (c *Command) SetContext(ctx context.Context, ctxCancel context.CancelFunc)
SetContext for killing command.
func (*Command) SetRegistry ¶
SetRegistry to reach command to registry struct.
func (*Command) SetWaitGroup ¶
SetWaitGroup is for shutdown service gracefully.
type RunChanStruct ¶
type StoreReg ¶
type StoreReg struct {
// contains filtered or unexported fields
}
StoreReg hold commands.
var GlobalReg *StoreReg
GlobalReg using in server requests. Don't forget to run KillAll before exit the program.
func (*StoreReg) IsExitCodeZero ¶
func (*StoreReg) SetAsGlobal ¶
Click to show internal directories.
Click to hide internal directories.