Versions in this module Expand all Collapse all v0 v0.1.0 Mar 2, 2025 Changes in this version + var HeaderXCorrelationId = "X-Correlation-ID" + var HeaderXRequestId = "X-Request-ID" + func CreateSharedRequest(ctx *gin.Context) + func SetCors(router *gin.Engine, allowedOrigins []string) + func SetRequestContextValue(ctx *gin.Context, key, value interface{}) + type ContextKey struct + func (ck ContextKey) String() string + type HttpServer struct + Gin *gin.Engine + func NewHttpServer(config *domain.HttpServerConfig) *HttpServer + func (gs *HttpServer) GetPath(ctx *gin.Context) string + func (gs *HttpServer) MapHttpStatusToLoggingLevel(ctx *gin.Context) LoggerDomain.Level + func (gs *HttpServer) ProfileNextRequest(ctx *gin.Context) time.Duration + func (gs *HttpServer) Run() error + func (hs *HttpServer) GetCorrelationID(ctx *gin.Context) string + func (hs *HttpServer) Reply(ctx *gin.Context, body interface{}) + func (hs *HttpServer) ReplyWithError(ctx *gin.Context, err error, body ...interface{}) + func (hs *HttpServer) RequireCorrelationID(ctx *gin.Context) + func (hs *HttpServer) RequireRequestID(ctx *gin.Context) + type Response struct + Body interface{} + Error *domain.ResponseError + RequestID string + StatusCode int