services

package
v0.0.0-...-6643502 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenService

type TokenService struct {
	// contains filtered or unexported fields
}

func NewTokenService

func NewTokenService(cfg *config.Config) *TokenService

func (*TokenService) GenerateToken

func (s *TokenService) GenerateToken(token *tokenDto) (*dto.TokenDetail, error)

func (*TokenService) GetClaims

func (s *TokenService) GetClaims(token string) (claimMap map[string]interface{}, err error)

func (*TokenService) VerifyToken

func (s *TokenService) VerifyToken(token string) (*jwt.Token, error)

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(cfg *config.Config) *UserService

func (*UserService) LoginByUsername

func (s *UserService) LoginByUsername(req *dto.LoginByUsernameRequest) (*dto.TokenDetail, error)

Login

func (*UserService) RegisterByUsername

func (s *UserService) RegisterByUsername(req *dto.RegisterUserByUsernameRequest) error

Register

Jump to

Keyboard shortcuts

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