model

package
v0.0.0-...-60b14e4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JWT_SECRET_KEY = "JWT_SECRET_KEY"
)

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
	GetAge() int8
	GetName() string
	GetID() string

	SetID(string)
	EncryptPassword()
	GenerateToken() (string, *rest_err.RestErr)
}

func NewUserDomain

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

func NewUserLoginDomain

func NewUserLoginDomain(
	email, 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