Documentation
¶
Overview ¶
Package gin provides some basic implementations for building routers based on gin-gonic/gin
Index ¶
- Constants
- func CustomErrorEndpointHandler(configuration *config.EndpointConfig, prxy proxy.Proxy, ...) gin.HandlerFunc
- func DebugHandler(logger logging.Logger) gin.HandlerFunc
- func DefaultFactory(proxyFactory proxy.Factory, logger logging.Logger) router.Factory
- func EndpointHandler(configuration *config.EndpointConfig, proxy proxy.Proxy) gin.HandlerFunc
- func NewFactory(cfg Config) router.Factory
- func NewRequest(headersToSend []string) func(*gin.Context, []string) *proxy.Request
- func RegisterRender(name string, r Render)
- type Config
- type HandlerFactory
- type Render
- type RunServerFunc
Constants ¶
View Source
const NEGOTIATE = "negotiate"
NEGOTIATE defines the value of the OutputEncoding for the negotiated render
Variables ¶
This section is empty.
Functions ¶
func CustomErrorEndpointHandler ¶
func CustomErrorEndpointHandler(configuration *config.EndpointConfig, prxy proxy.Proxy, errF router.ToHTTPError) gin.HandlerFunc
CustomErrorEndpointHandler implements the HandleFactory interface
func DebugHandler ¶
func DebugHandler(logger logging.Logger) gin.HandlerFunc
DebugHandler creates a dummy handler function, useful for quick integration tests