Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessLogger ¶
func AccessLogger() gin.HandlerFunc
AccessLogger retrieves a new middleware that logs the GIN requests.
func JSONAppErrorHandler ¶
func JSONAppErrorHandler() gin.HandlerFunc
JSONAppErrorHandler is the middleware handling the overall error handling mechanism.
Types ¶
type HealthcheckController ¶
type HealthcheckController struct { }
HealthcheckController handles any such check operations.
func NewHealthcheckController ¶
func NewHealthcheckController() *HealthcheckController
NewHealthcheckController retrieves a new controller that handles any health check requests.
func (*HealthcheckController) Register ¶
func (ctrl *HealthcheckController) Register(routerGroup *gin.RouterGroup)
Register this controller to the provided group.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server structure that encapsulates all related data.
func (*Server) Setup ¶
func (server *Server) Setup(config *config.AppConfiguration, controllers *server.Controllers)
Setup prepares the server but does not starts it.
Click to show internal directories.
Click to hide internal directories.