negroni

package
v2.0.0-...-9629169 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package negroni provides some basic implementations for building routers based on urfave/negroni

Index

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

func NewGorillaRouter() *gorilla.Router

NewGorillaRouter is a wrapper over the default gorilla router builder

Types

This section is empty.

Jump to

Keyboard shortcuts

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