Documentation ¶
Index ¶
Constants ¶
View Source
const JWT_SECRET_KEY = "JWT_SECRET_KEY"
Variables ¶
This section is empty.
Functions ¶
func RemoveBearerPrefix ¶
func VerifyTokenMiddleware ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.