Documentation ¶
Index ¶
Constants ¶
View Source
const WorkerContextKey = ContextKey("WorkerContext")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextKey ¶
type ContextKey string
type Controller ¶
type Controller interface { Run() error Stop() }
func NewController ¶
func NewController(ctx context.Context, trigger triggers.Trigger, router Router, options ControllerOptions) Controller
type ControllerOptions ¶
type ControllerOptions struct {
NumOfWorker int
}
type Router ¶
type WorkerContext ¶
type WorkerContext struct {
ID string
}
Click to show internal directories.
Click to hide internal directories.