Documentation
¶
Index ¶
- func AdminMiddleware() gin.HandlerFunc
- func AuthMiddleware() gin.HandlerFunc
- func CheckPassword(password, hash string) bool
- func GenerateToken(user *entity.User) (string, error)
- func HashPassword(password string) (string, error)
- func LoggingMiddleware(next http.Handler) http.Handler
- func PublicAPIAuth() gin.HandlerFunc
- func SetRepositoryManager(rm *repo.RepositoryManager)
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
LoggingMiddleware HTTP请求日志中间件
func SetRepositoryManager ¶
func SetRepositoryManager(rm *repo.RepositoryManager)
SetRepositoryManager 设置Repository管理器
Types ¶
Click to show internal directories.
Click to hide internal directories.