Documentation
¶
Overview ¶
Package api control naraku api.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// echo framework. it's manage api handlers.
*echo.Echo
// contains filtered or unexported fields
}
API is a structure that aggregates the necessary information for API execution.
type HealthController ¶
type HealthController struct{}
HealthController is a controller for /health API.
func NewHealthController ¶
func NewHealthController() *HealthController
NewHealthController returns a new HealthController struct.
type HealthResponse ¶
type HealthResponse struct {
// @Description Name is server name.
Name string `json:"name"`
// @Description Version is repository tag version
Version string `json:"version"`
// @Description Revision is git revision
Revision string `json:"revision"`
}
HealthResponse is response for GET /health
Click to show internal directories.
Click to hide internal directories.