Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LocaleFromRequest ¶
func LocaleFromRequest(c Parameterizer) string
LocaleFromRequest can handle a Parameterizer (focus in *gin.Context) to return the locale from request
Types ¶
type Parameterizer ¶
Parameterizer can pass a param mapped over string
type PostFormParameterizer ¶
type PostFormParameterizer interface { Parameterizer PostFormer }
PostFormParameterizer join Parameterizer and PostFormer
type PostFormer ¶
PostFormer handle operations of an Post over a form in HTML
type SignForm ¶
type SignForm struct { Key string `json:"key"` Data []jwtservices.Tuple `json:"data"` }
SignForm receive data from `POST api/jwt/*/sign` endpoint
type SignUpForm ¶
type SignUpForm struct { Email string Password string RepeatPassword string Agree bool Privacy bool Newsletter bool Locale string }
SignUpForm receive data from `POST signup/:locale` endpoint
func (*SignUpForm) Populate ¶
func (form *SignUpForm) Populate(req PostFormParameterizer)
Populate data with post form
Click to show internal directories.
Click to hide internal directories.