Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // Run daemon process if needed Serve() error // New tracker from the new provided stats New(stats *job.Stats) (job.Tracker, error) // Track the life cycle of the specified existing job Track(jobID string) (job.Tracker, error) }
Controller is designed to control the life cycle of the job
func NewController ¶
func NewController(ctx *env.Context, ns string, pool *redis.Pool, callback job.HookCallback) Controller
NewController is the constructor of basic controller
Click to show internal directories.
Click to hide internal directories.