Documentation ¶
Index ¶
- func AppInfo() gin.HandlerFunc
- func CheckCasbinAuth() gin.HandlerFunc
- func ContextTimeout(t time.Duration) func(c *gin.Context)
- func Cookie()
- func Cors() gin.HandlerFunc
- func JWT() gin.HandlerFunc
- func JWTAuth() gin.HandlerFunc
- func MaxAllowed(limitValue int64) func(c *gin.Context)
- func MustLogin() gin.HandlerFunc
- func Translations() gin.HandlerFunc
- type GinPrometheus
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppInfo ¶
func AppInfo() gin.HandlerFunc
func CheckCasbinAuth ¶
func CheckCasbinAuth() gin.HandlerFunc
func JWT ¶
func JWT() gin.HandlerFunc
func MaxAllowed ¶
func Translations ¶
func Translations() gin.HandlerFunc
Types ¶
type GinPrometheus ¶
type GinPrometheus struct {
// contains filtered or unexported fields
}
GinPrometheus gin调用Prometheus的struct
func NewPrometheus ¶
func NewPrometheus(e *gin.Engine, options ...Option) *GinPrometheus
New new gin prometheus
func (*GinPrometheus) Middleware ¶
func (gp *GinPrometheus) Middleware() gin.HandlerFunc
Middleware set gin middleware
Click to show internal directories.
Click to hide internal directories.