Documentation
¶
Index ¶
- func HandleApiKeyAuth(validKey string) gin.HandlerFunc
- func InitRadiusHandler(router gin.IRoutes, db *pg.DB)
- func InitTokenHandler(router gin.IRouter, db *pg.DB)
- func InitUserHandler(router gin.IRouter, db *pg.DB)
- func IsValidApiKey(ctx *gin.Context, validKey string) error
- type Claims
- type User
- type UserCreation
- type UserOutput
- type UserOutputWithToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleApiKeyAuth ¶
func HandleApiKeyAuth(validKey string) gin.HandlerFunc
Types ¶
type Claims ¶
type Claims struct {
jwt.StandardClaims
Email string `json:"email"`
}
type UserCreation ¶
type UserOutput ¶
type UserOutputWithToken ¶
type UserOutputWithToken struct {
UserOutput
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.