Documentation ¶
Index ¶
- Constants
- func CORS() echo.MiddlewareFunc
- func Deny(tokens []string) echo.MiddlewareFunc
- func Gzip() echo.MiddlewareFunc
- func Logger() echo.MiddlewareFunc
- func Native(h func(http.ResponseWriter, *http.Request)) echo.HandlerFunc
- func Protocol(name string) echo.MiddlewareFunc
- func ReverseWithConfig(config ReverseConfig) echo.HandlerFunc
- type ReverseConfig
Constants ¶
View Source
const ( // TxnHeader allow to trace logs of a request TxnHeader = "X-App-Txn" // UnknownPath path label for all 404 answers (path not found) UnknownPath = "unknown_path" )
Variables ¶
This section is empty.
Functions ¶
func CORS ¶
func CORS() echo.MiddlewareFunc
CORS handle preflight request the default middleware is not used because we have to set dynamically the origin
func Deny ¶
func Deny(tokens []string) echo.MiddlewareFunc
Deny is a middleware that check tokens and deny if there are in configuration
func Native ¶
func Native(h func(http.ResponseWriter, *http.Request)) echo.HandlerFunc
Native wrap native handler to echo handler @see echo.WrapHandler
func ReverseWithConfig ¶
func ReverseWithConfig(config ReverseConfig) echo.HandlerFunc
ReverseWithConfig execute a reverse proxy using the configuration given in parameters
Types ¶
type ReverseConfig ¶
ReverseConfig is the configuration to describe a reverse proxy
Source Files ¶
Click to show internal directories.
Click to hide internal directories.