service

package
v0.0.0-...-a3802eb Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

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

func NewAuthService

func NewAuthService() AuthService

func (AuthService) Login

func (service AuthService) Login(req dto.LoginRequest) (*dto.TokenResponse, error)

type JWTClaims

type JWTClaims struct {
	Username string
	jwt.StandardClaims
}

type JWTService

type JWTService struct{}

func NewJWTService

func NewJWTService() JWTService

func (JWTService) GenerateToken

func (service JWTService) GenerateToken(username string) (string, error)

func (JWTService) ParseTokenWithClaims

func (service JWTService) ParseTokenWithClaims(tokenString string) (*JWTClaims, bool, error)

type UserService

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

func NewUserService

func NewUserService() UserService

func (UserService) Register

func (service UserService) Register(req dto.RegisterRequest) error

Jump to

Keyboard shortcuts

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