Documentation
¶
Index ¶
- Constants
- Variables
- func BindAndValidate(c *gin.Context, obj any) error
- func CastFloatToStr(val float64) string
- func CastStrToFloat(val string) (float64, error)
- func GetCurrentPageAndPageCount(c *gin.Context) (pageInt, perPageInt int64)
- func GetTotalPages(totalCount, perPage int64) int64
- func Ptr[T any](v T) *T
- func ValidateQuotaFields(c *gin.Context, cpuCap float64, memCap int) error
Constants ¶
View Source
const ( ManagerRole = "manager" // DefaultExpirationDays - default expiration days set for Catalog DefaultExpirationDays = 5 )
Variables ¶
Functions ¶
func BindAndValidate ¶ added in v0.6.0
BindAndValidate is used to bind unmarshal request and return custom errors if there are any.
func CastFloatToStr ¶
func CastStrToFloat ¶
func GetCurrentPageAndPageCount ¶ added in v0.5.0
func GetTotalPages ¶ added in v0.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.