Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteError ¶
func WriteSuccess ¶
Types ¶
type AppError ¶
type AppError struct { // Наименование ошибки Name string `json:"name" validate:"required" example:"NotFound"` // Сообщение ошибки Message string `json:"message" validate:"required" example:"entity not found"` // Код ошибки Code int `json:"code" validate:"required" example:"26002"` // Статус код ответа Status int `json:"status" validate:"required" example:"404"` } // @AppError
func (AppError) SetMessage ¶
Click to show internal directories.
Click to hide internal directories.