Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) OnStarted ¶
func (e *Engine) OnStarted(h OnStartedHandler)
func (*Engine) RegisterEndpoint ¶
func (e *Engine) RegisterEndpoint(method, path string, handler middleware.HandlerFunc)
func (*Engine) RegisterMiddleware ¶
func (e *Engine) RegisterMiddleware(mw middleware.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.