Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.1.5
type Config struct {
Mode Mode
Middleware Middleware
Endpoints map[string]web.HandlerFunc
}
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) OnStarted ¶
func (e *Engine) OnStarted(h OnStartedHandler)
type Middleware ¶ added in v0.1.5
type Middleware struct {
Web []web.MiddlewareFunc
Task []task.MiddlewareFunc
Job []job.MiddlewareFunc
Node []node.MiddlewareFunc
}
type OnStartedHandler ¶
type OnStartedHandler func() error
OnStartedHandler a bootstrap hook that is called after Tork has finished starting up. If a non-nil error is returned it will terminate the bootstrap process.
Click to show internal directories.
Click to hide internal directories.