service

package
v0.0.0-...-04a01ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtService

type JwtService struct{}

func (*JwtService) CreateToken

func (*JwtService) CreateToken(signKey *rsa.PrivateKey, expiration int) (stToken model.Token, createError error)

func (*JwtService) VerifyToken

func (*JwtService) VerifyToken(verifyKey *rsa.PublicKey, tokenString string) (stToken model.Token, expire_in int64, verifyError error)

type UserService

type UserService struct{}

func (*UserService) Authorize

func (s *UserService) Authorize(auth *model.Auth) (user model.User, error error)

func (*UserService) CreateAuth

func (s *UserService) CreateAuth(user *model.User) (tokenSet model.TokenSet, expire_in model.ExpireIn, error error)

func (*UserService) DeleteAuth

func (s *UserService) DeleteAuth(accessToken string) (error error)

func (*UserService) RefreshAuth

func (s *UserService) RefreshAuth(refreshToken string) (tokenSet model.TokenSet, expire_in int64, error error)

func (*UserService) VerifyAuth

func (s *UserService) VerifyAuth(accessToken string) (user model.User, expire_in int64, error error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL