model

package
v0.0.0-...-8c7e8b1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const JWT_SECRET_KEY = "JWT_SECRET_KEY"

Variables

This section is empty.

Functions

func RemoveBearerPrefix

func RemoveBearerPrefix(token string) string

func VerifyTokenMiddleware

func VerifyTokenMiddleware(c *gin.Context)

Types

type UserDomainInterface

type UserDomainInterface interface {
	GetEmail() string
	GetPassword() string
	GetName() string
	GetAge() int8
	EncryptPassword()
	SetId(string)
	GetId() string
	GenerateToken() (string, *rest_err.RestErr)
}

func NewUserDomain

func NewUserDomain(email string, password string, name string, age int8) UserDomainInterface

func NewUserLoginDomain

func NewUserLoginDomain(email string, password string) UserDomainInterface

func NewUserUpdateDomain

func NewUserUpdateDomain(name string, age int8) UserDomainInterface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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