Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTranslator ¶
func RegisterTranslator(tag string, msg string) validator.RegisterTranslationsFunc
func Translate ¶
func Translate(trans unTrans.Translator, fe validator.FieldError) string
Types ¶
type AuthxMiddleware ¶
type AuthxMiddleware struct {
CasbinEnforcer *casbin.Enforcer
Route2CodeFunc func(r *http.Request) string
}
func NewAuthxMiddleware ¶
func (*AuthxMiddleware) Handle ¶
func (m *AuthxMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
type ErrorMiddleware ¶
type ErrorMiddleware struct{}
func NewErrorMiddleware ¶
func NewErrorMiddleware() *ErrorMiddleware
type I18nMiddleware ¶
type I18nMiddleware struct {
}
func NewI18nMiddleware ¶
func NewI18nMiddleware() *I18nMiddleware
func (*I18nMiddleware) Handle ¶
func (m *I18nMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
type OkMiddleware ¶
type OkMiddleware struct{}
func NewOkMiddleware ¶
func NewOkMiddleware() *OkMiddleware
type ValidatorMiddleware ¶
type ValidatorMiddleware struct {
// contains filtered or unexported fields
}
func NewValidatorMiddleware ¶
func NewValidatorMiddleware() *ValidatorMiddleware
Click to show internal directories.
Click to hide internal directories.