Documentation
¶
Index ¶
- func BindData(c *gin.Context, data interface{}) (int, error)
- func FetchErrorHandler(c *gin.Context, err error)
- func NewError(c *gin.Context, status int, err error)
- func OptionsGet(c *gin.Context)
- func OptionsGetPatchDelete(c *gin.Context)
- func OptionsGetPost(c *gin.Context)
- func ParseID(c *gin.Context, param string) (uint64, error)
- func RequestHost(c *gin.Context) string
- func RequestPathV1(c *gin.Context) string
- func RequestURL(c *gin.Context) string
- type HTTPError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchErrorHandler ¶
FetchErrorHandler handles errors for fetching data from the database.
func OptionsGet ¶
func OptionsGetPatchDelete ¶
func OptionsGetPost ¶
func RequestHost ¶
The scheme defaults to https and only falls back to http if the x-forwarded-proto header is set to "http".
func RequestPathV1 ¶
RequestPathV1 returns the URL with the prefix for API v1.
Types ¶
Click to show internal directories.
Click to hide internal directories.