Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JWTMiddleware ¶
func JWTMiddleware(as AuthenticateService) *jwt.GinJWTMiddleware
Types ¶
type AuthenticateAPI ¶
type AuthenticateAPI struct {
AuthenticateService AuthenticateService
}
func (*AuthenticateAPI) Create ¶
func (a *AuthenticateAPI) Create(c *gin.Context)
type AuthenticateService ¶
type AuthenticateService interface { Save(user User) User FindByUsername(username string) (User, error) }
func ProviderAuthenticatingService ¶
func ProviderAuthenticatingService(u UserRepository) AuthenticateService
Click to show internal directories.
Click to hide internal directories.