Documentation ¶
Overview ¶
Package negroni provides some basic implementations for building routers based on urfave/negroni
SPDX-License-Identifier: Apache-2.0
Index ¶
- func DefaultConfig(pf proxy.Factory, logger logging.Logger, middlewares []negroni.Handler) mux.Config
- func DefaultConfigWithRouter(pf proxy.Factory, logger logging.Logger, muxEngine *gorilla.Router, ...) mux.Config
- func DefaultFactory(pf proxy.Factory, logger logging.Logger, middlewares []negroni.Handler) router.Factory
- func NewGorillaRouter() *gorilla.Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func DefaultConfig(pf proxy.Factory, logger logging.Logger, middlewares []negroni.Handler) mux.Config
DefaultConfig returns the struct that collects the parts the router should be builded from
func DefaultConfigWithRouter ¶
func DefaultConfigWithRouter(pf proxy.Factory, logger logging.Logger, muxEngine *gorilla.Router, middlewares []negroni.Handler) mux.Config
DefaultConfigWithRouter returns the struct that collects the parts the router should be builded from with the injected gorilla mux router
func DefaultFactory ¶
func DefaultFactory(pf proxy.Factory, logger logging.Logger, middlewares []negroni.Handler) router.Factory
DefaultFactory returns a net/http mux router factory with the injected proxy factory and logger
func NewGorillaRouter ¶
NewGorillaRouter is a wrapper over the default gorilla router builder
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.