Documentation ¶
Overview ¶
Package api control emigre 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
type UserController ¶
type UserController struct { // Creator is an usecase for creating users. Creator usecase.UserCreator }
UserController is a controller for /users API.
func NewUserController ¶
func NewUserController(u *di.User) *UserController
NewUserController returns a new UserController struct.
type UserCreatorPayload ¶
type UserCreatorPayload struct { // @Description name of user Name string `json:"name"` // @Description email address of user Email string `json:"email"` // @Description biography of user Biography string `json:"biography"` }
UserCreatorPayload is a payload for POST /users
Click to show internal directories.
Click to hide internal directories.