Documentation ¶
Index ¶
- Constants
- type Context
- func (c *Context) Build(dep env.JobData) (env.JobContext, error)
- func (c *Context) Checkin(status string) error
- func (c *Context) Get(prop string) (interface{}, bool)
- func (c *Context) GetLogger() logger.Interface
- func (c *Context) Init() error
- func (c *Context) OPCommand() (string, bool)
- func (c *Context) SystemContext() context.Context
- type DemoJob
Constants ¶
View Source
const (
//KnownJobDemo is name of demo job
KnownJobDemo = "DEMO"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context ...
func NewContext ¶
NewContext ...
func (*Context) Build ¶
Build implements the same method in env.JobContext interface This func will build the job execution context before running
func (*Context) OPCommand ¶
OPCommand return the control operational command like stop/cancel if have
func (*Context) SystemContext ¶
SystemContext implements the same method in env.JobContext interface
type DemoJob ¶
type DemoJob struct{}
DemoJob is the job to demostrate the job interface.
Click to show internal directories.
Click to hide internal directories.