Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapHandler ¶
func WrapHandler(handler HandlerFunc) gin.HandlerFunc
Types ¶
type Error ¶
type Error struct {
// Machine-readable error code.
HTTPStatusCode int `json:"http_status_code,omitempty"`
// Human-readable message.
Message string `json:"message,omitempty"`
Request string `json:"request,omitempty"`
// Logical operation and nested error.
Op string `json:"op,omitempty"`
Err error `json:"error,omitempty"`
}
Error defines a standard application error.
type HandlerFunc ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.