Documentation
¶
Overview ¶
Package gin defines a set of basic building blocks for instrumenting KrakenD gateways built using the gin router
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPHandlerFactory ¶
func NewHTTPHandlerFactory(rm *metrics.RouterMetrics, hf krakendgin.HandlerFactory) krakendgin.HandlerFactory
NewHTTPHandlerFactory wraps a handler factory adding some simple instrumentation to the generated handlers
Types ¶
type Metrics ¶
Metrics is the component that manages all the metrics for the gin-based gateways
func (*Metrics) NewEngine ¶
NewEngine returns a *gin.Engine with some defaults and the stats endpoint (no logger)
func (*Metrics) NewExpHandler ¶
func (m *Metrics) NewExpHandler() gin.HandlerFunc
NewExpHandler creates an http.Handler ready to expose all the collected metrics as a JSON
func (*Metrics) NewHTTPHandlerFactory ¶
func (m *Metrics) NewHTTPHandlerFactory(hf krakendgin.HandlerFactory) krakendgin.HandlerFactory
NewHTTPHandlerFactory wraps a handler factory adding some simple instrumentation to the generated handlers
Click to show internal directories.
Click to hide internal directories.