Versions in this module Expand all Collapse all v0 v0.7.4 May 3, 2024 v0.7.3 Apr 24, 2024 Changes in this version + const AUTHORIZATION + const CONTENT_TYPE + const CONTENT_TYPE_JSON + var ErrIncorrectContentType = fmt.Errorf("http header did not contain key %s with value %s", CONTENT_TYPE, ...) + func ErrorResponse(c *gin.Context, message string, httpStatusCode int) + func GetAuthHeader(c *gin.Context) (header string) + func UnmarshalBody[bodyT any](c *gin.Context) (v bodyT, err error) + type Server interface + API func() *gin.RouterGroup + Base func() *gin.RouterGroup + Port func() uint16 + Run func() + Url func() (u *url.URL) + func Init(port uint16, from_base bool) (Server, error)