Documentation ¶
Index ¶
- Constants
- Variables
- func Error404() gin.HandlerFunc
- func NewGin(option config.Set, render *Render, guarder *JWTGuarder) (*gin.Engine, error)
- func NewPromHTTP() gin.HandlerFunc
- func QuickReply() gin.HandlerFunc
- type BasicGuardValidator
- type CommonHandler
- type ErrPage
- type GuarderValidator
- type JWTGuarder
- type Render
Constants ¶
View Source
const (
ErrPageKey = "error"
)
Variables ¶
View Source
var ( Error404Set = Error404() QuickReplySet = QuickReply() NewPromHTTPSet = NewPromHTTP() )
View Source
var ErrorPageTmpl = `` /* 3951-byte string literal not displayed */
Functions ¶
func NewPromHTTP ¶
func NewPromHTTP() gin.HandlerFunc
Types ¶
type BasicGuardValidator ¶
type BasicGuardValidator struct {
// contains filtered or unexported fields
}
func NewBasicGuardValidator ¶
func NewBasicGuardValidator(jwt jwtTool.IJWT) *BasicGuardValidator
type CommonHandler ¶
type CommonHandler struct { Error404 gin.HandlerFunc QuickReply gin.HandlerFunc PromHTTP gin.HandlerFunc }
type GuarderValidator ¶
type JWTGuarder ¶
type JWTGuarder struct {
// contains filtered or unexported fields
}
func NewJWTGuarder ¶
func NewJWTGuarder(option config.JWT, validator GuarderValidator) *JWTGuarder
func (*JWTGuarder) JWTGuarder ¶
func (j *JWTGuarder) JWTGuarder(whitelist ...string) gin.HandlerFunc
JWTGuarder method
Click to show internal directories.
Click to hide internal directories.