Documentation ¶
Index ¶
- func CreateRouter(ctx context.Context, cacheInSeconds int) *gin.Engine
- func Echo(ctx context.Context, c *gin.Context)
- func ExecuteListener(ctx context.Context, c *gin.Context, listener listener.ListenerInterface)
- func Health(c *gin.Context)
- func Home(ctx context.Context, c *gin.Context)
- func Ready(c *gin.Context)
- func RequestIdMiddleware() gin.HandlerFunc
- func Start(ctx context.Context, router *gin.Engine, cfg *config.ServerConfiguration, ...) error
- func TraceLogsMiddleware() gin.HandlerFunc
- func WriteResponse(log *zap.SugaredLogger, status int, errD []http.ErrorDetail, c *gin.Context, ...)
- type HealthResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteListener ¶
func Health ¶
AddAccount godoc @Summary API Health @Description API Health response @Tags health @Accept json @Produce json @Param user body model.HealthResponse true "Health" @Success 200 {object} model.HealthResponse @Router /health [post]
func Home ¶
AddAccount godoc @Summary API Health @Description API Health response @Tags health @Accept json @Produce json @Param user body model.HealthResponse true "Health" @Success 200 {object} model.HealthResponse @Router /health [post]
func Ready ¶
AddAccount godoc @Summary API Health @Description API Health response @Tags health @Accept json @Produce json @Param user body model.HealthResponse true "Health" @Success 200 {object} model.HealthResponse @Router /health [post]
func RequestIdMiddleware ¶
func RequestIdMiddleware() gin.HandlerFunc
func TraceLogsMiddleware ¶
func TraceLogsMiddleware() gin.HandlerFunc
func WriteResponse ¶
func WriteResponse(log *zap.SugaredLogger, status int, errD []http.ErrorDetail, c *gin.Context, cfg *config.ServerConfiguration)
Types ¶
type HealthResponse ¶
type HealthResponse struct {
Status string `json:"status" yaml:"status"`
}