Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserNamespaces = "user-namespaces" RoleUser = "user" RoleAdmin = "admin" )
Variables ¶
This section is empty.
Functions ¶
func RequiredUserHeaders ¶
func RequiredUserHeaders() gin.HandlerFunc
Types ¶
type TranslateValidate ¶
type TranslateValidate struct { *ut.UniversalTranslator *validator.Validate }
func (*TranslateValidate) BadRequest ¶
func (*TranslateValidate) HandleError ¶
func (tv *TranslateValidate) HandleError(err error) (int, *cherry.Err)
func (*TranslateValidate) ValidateHeaders ¶
func (tv *TranslateValidate) ValidateHeaders(headerTagMap map[string]string) gin.HandlerFunc
type UserHeaderDataMap ¶
type UserHeaderDataMap map[string]model.UserHeaderData
func ParseUserHeaderData ¶
func ParseUserHeaderData(str string) (*UserHeaderDataMap, error)
ParseUserHeaderData decodes headers for substitutions
Click to show internal directories.
Click to hide internal directories.