Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct { ID int64 `json:id` User string `json:user` Password string `json:password,omitempty` Role string `json:"role"` Projects []string `json:"projects"` DBClient *postgres.PGClient jwt.StandardClaims }
User - struct for user, contains username, passowd (in base64) and JWT
func (User) ChangePassword ¶
ChangePassword - change user password
func (User) CheckPasswordExp ¶
CheckPasswordExp - func for check PasswordExp (for )validation of user token)
func (User) NewTokenString ¶
NewTokenString - func for generate and response new token
Click to show internal directories.
Click to hide internal directories.