Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandlerFactory ¶
func NewHandlerFactory(ctx context.Context, errorHandler routem.ErrorHandlerFunc) routem.HandlerFactory
Constructs a new handler factory which uses a trie data structure to quickly look up routes.
All routes will be passed a context derived from the context passed to the factory. If no context is passed then context.Background() is used as the root context.
If an ErrorHandlerFunc is provided and the route does not have a route specific error handler that handler will be called if a route returns an error. Otherwise a 500 error will be returned to the client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.