Documentation
¶
Overview ¶
* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.net/ * * See LICENSE.
* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.net/ * * See LICENSE.
* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.net/ * * See LICENSE.
* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.net/ * * See LICENSE.
Index ¶
- func BadRequest(c *gin.Context, opt_msg ...string)
- func Exists(path string) bool
- func ExpandPath(path string) (string, error)
- func Forbidden(c *gin.Context, opt_msg ...string)
- func FormatBytes(s uint64) string
- func InSlice(a string, list []string) bool
- func NotFound(c *gin.Context, opt_msg ...string)
- func ServerError(c *gin.Context, err error)
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func ExpandPath ¶
func FormatBytes ¶
func ServerError ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
// The error description.
// in: body
// Error code.
Code int `json:"code"`
// Error message.
// in: body
Message string `json:"message"`
}
Used when sending a HTTP status response different than 200 swagger:response errorResponse
Click to show internal directories.
Click to hide internal directories.