Documentation ¶
Index ¶
- func ExtractToken(r *http.Request) string
- func TokenAuthMiddleware(c *gin.Context)
- func TokenValid(r *http.Request) error
- func VerifyToken(r *http.Request) (*jwt.Token, error)
- type AccessDetails
- type Adder
- type App
- type Fo
- type Four
- type Ml
- type TokenDetails
- type User
- type UserUtils
- func (u *UserUtils) AcceptFriend(c *gin.Context)
- func (u *UserUtils) AddFriend(c *gin.Context)
- func (a *UserUtils) AddOauthUser(u Four) error
- func (a *UserUtils) AddUser(u *User) (err error)
- func (u *UserUtils) BanFriend(c *gin.Context)
- func (u *UserUtils) Change(c *gin.Context)
- func (u *UserUtils) Change_Forgot(c *gin.Context)
- func (u *UserUtils) CreateAuth(userid string, td *TokenDetails) (err error)
- func (u *UserUtils) CreateToken(user User, ha bool) (*TokenDetails, error)
- func (u *UserUtils) Deban(c *gin.Context)
- func (u *UserUtils) DelFriend(c *gin.Context)
- func (u *UserUtils) DelUser(c *gin.Context)
- func (u *UserUtils) DeleteAuth(givenUuid string) (int64, error)
- func (u *UserUtils) FetchAuth(authD *AccessDetails) (string, error)
- func (u *UserUtils) Forgot(c *gin.Context)
- func (u *UserUtils) Get42(c *gin.Context)
- func (a *UserUtils) GetAllFriend(c *gin.Context)
- func (a *UserUtils) GetUser(u *User) (err error)
- func (a *UserUtils) GetUseriVerif(uid string) (err error)
- func (u *UserUtils) GetUsers(c *gin.Context)
- func (a *UserUtils) InitUser()
- func (u *UserUtils) Refresh(c *gin.Context)
- func (u *UserUtils) RefuseFriend(c *gin.Context)
- func (a *UserUtils) SendMail(u, email string) (err error)
- func (a *UserUtils) SendMailForgot(u, email string) (err error)
- func (u *UserUtils) ShowFriend(c *gin.Context)
- func (u *UserUtils) Tok(c *gin.Context)
- func (u *UserUtils) UserHandler(c *gin.Context)
- func (u *UserUtils) UserVerif(c *gin.Context)
- func (u *UserUtils) WWW(s *server.Server)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractToken ¶
func TokenAuthMiddleware ¶
func TokenValid ¶
func VerifyToken ¶
Types ¶
type AccessDetails ¶
func ExtractTokenMetadata ¶
func ExtractTokenMetadata(r *http.Request) (*AccessDetails, error)
type TokenDetails ¶
type UserUtils ¶
func (*UserUtils) AcceptFriend ¶
func (*UserUtils) AddOauthUser ¶
func (*UserUtils) Change_Forgot ¶
func (*UserUtils) CreateAuth ¶
func (u *UserUtils) CreateAuth(userid string, td *TokenDetails) (err error)
func (*UserUtils) CreateToken ¶
func (u *UserUtils) CreateToken(user User, ha bool) (*TokenDetails, error)
func (*UserUtils) GetAllFriend ¶
func (*UserUtils) GetUseriVerif ¶
func (*UserUtils) RefuseFriend ¶
func (*UserUtils) SendMailForgot ¶
func (*UserUtils) ShowFriend ¶
func (*UserUtils) UserHandler ¶
Click to show internal directories.
Click to hide internal directories.