package
Version:
v0.0.0-...-fe9e027
Opens a new window with list of versions in this module.
Published: Jul 5, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateUser struct {
AccessToken string `db:"token"`
Login string `db:"login"`
Password string `db:"password"`
Role string `db:"user_role"`
}
type Permissions struct {
CreateUser bool `db:"create_user"`
CreateRole bool `db:"create_role"`
CreateValue bool `db:"create_value"`
DeleteUser bool `db:"delete_user"`
DeleteRole bool `db:"delete_role"`
DeleteValue bool `db:"delete_value"`
}
type Role struct {
CreatedBy string `db:"created_by"`
CreateUser bool `db:"create_user"`
CreateRole bool `db:"create_role"`
CreateValue bool `db:"create_value"`
DeleteUser bool `db:"delete_user"`
DeleteRole bool `db:"delete_role"`
DeleteValue bool `db:"delete_value"`
Role string `db:"user_role"`
}
type User struct {
Login string `db:"login"`
Password string `db:"password"`
}
type UserToken struct {
AccessToken string `json:"access_token"`
Exp time.Time `json:"exp"`
Role string `json:"role"`
Login string `json:"login"`
}
type Value struct {
CreatedBy string `db:"created_by"`
Key string `db:"key"`
Value string `db:"value"`
Roles string `db:"roles"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.