Documentation
¶
Index ¶
Constants ¶
View Source
const ( Avatar = "avatar" ProfileBackGround = "profile-background" )
Variables ¶
View Source
var NullUUID = uuid.MustParse("00000000-0000-0000-0000-000000000000")
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { ID uuid.UUID `json:"id" validation:"required"` References References `json:"refs" validation:"required"` Path string }
type Feature ¶
type Feature struct { ID int `json:"id"` Name string `json:"name"` Config json.RawMessage `json:"config"` }
Feature describes the available simulation features.
type Privileges ¶
type Privileges []Privilege
func (Privileges) IsValidPrivilege ¶
func (l Privileges) IsValidPrivilege(privilege int) bool
type ProductUsers ¶
type Project ¶
type Project struct { ID uuid.UUID `json:"id"` Name string `json:"name"` UserID uuid.UUID `json:"user_id"` FeatureID int `json:"features_id"` Config json.RawMessage `json:"config"` }
Project defines the project structure.
type References ¶
type References struct { AvatarID uuid.UUID `json:"avatar_id,omitempty"` ProfileBackGround uuid.UUID `json:"profile_backgr,omitempty"` }
Assets structure contains the identification of all user related documents images.
type Settings ¶
type Settings struct {
TwoStepsVerif bool `json:"two_steps_verif,omitempty"`
}
Assets structure contains the identification of all user related documents images.
type User ¶
type User struct { ID uuid.UUID `json:"id" validation:"required"` Name string `json:"name" validation:"required"` Email string `json:"email" validation:"required"` Password string `json:"password" validation:"required"` SettingsID uuid.UUID `json:"user_settings_id" validation:"required"` AssetsID uuid.UUID `json:"user_assets_id" validation:"required"` }
User defines the user structures. Each user must have an associated settings entry.
type UserProducts ¶
type UserSetting ¶
Click to show internal directories.
Click to hide internal directories.