Documentation ¶
Index ¶
- type ExtHTTPHandler
- type ExtHTTPSpyHandler
- type HTTPHandlerWrapper
- func (wrp *HTTPHandlerWrapper) HTTPHandler(f ExtHTTPHandler) fasthttp.RequestHandler
- func (wrp *HTTPHandlerWrapper) HTTPSpyHandler(spy middleware.Spy, f ExtHTTPSpyHandler) fasthttp.RequestHandler
- func (wrp *HTTPHandlerWrapper) Metrics(name string, handler ExtHTTPHandler) fasthttp.RequestHandler
- func (wrp *HTTPHandlerWrapper) SpyMetrics(name string, spy middleware.Spy, handler ExtHTTPSpyHandler) fasthttp.RequestHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtHTTPHandler ¶
type ExtHTTPHandler func(context.Context, *fasthttp.RequestCtx)
ExtHTTPHandler with general context param
type ExtHTTPSpyHandler ¶
type ExtHTTPSpyHandler func(context.Context, *fasthttp.RequestCtx, personification.Person)
ExtHTTPSpyHandler with general context param and person
type HTTPHandlerWrapper ¶
type HTTPHandlerWrapper struct {
// contains filtered or unexported fields
}
HTTPHandlerWrapper wraps extended HTTP handler to standart
func NewHTTPHandlerWrapper ¶
func NewHTTPHandlerWrapper( prepareRequestCtx func(ctx *fasthttp.RequestCtx), newRequestCtx func(ctx *fasthttp.RequestCtx) context.Context, logger *zap.Logger, ) *HTTPHandlerWrapper
NewHTTPHandlerWrapper returns new wrapper object
func (*HTTPHandlerWrapper) HTTPHandler ¶
func (wrp *HTTPHandlerWrapper) HTTPHandler(f ExtHTTPHandler) fasthttp.RequestHandler
HTTPHandler wraps default Ext HTTP handler
func (*HTTPHandlerWrapper) HTTPSpyHandler ¶
func (wrp *HTTPHandlerWrapper) HTTPSpyHandler(spy middleware.Spy, f ExtHTTPSpyHandler) fasthttp.RequestHandler
HTTPSpyHandler wraps default Ext HTTP handler and personification
func (*HTTPHandlerWrapper) Metrics ¶
func (wrp *HTTPHandlerWrapper) Metrics(name string, handler ExtHTTPHandler) fasthttp.RequestHandler
Metrics wraps default Ext HTTP handler with metrics
func (*HTTPHandlerWrapper) SpyMetrics ¶
func (wrp *HTTPHandlerWrapper) SpyMetrics(name string, spy middleware.Spy, handler ExtHTTPSpyHandler) fasthttp.RequestHandler
SpyMetrics wraps default Ext HTTP handler with metrics and personification
Click to show internal directories.
Click to hide internal directories.