trie

package
v0.0.0-...-ae78aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2016 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL