Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Group ¶
type Group struct { ID uuid.UUID `json:"id"` Name string `json:"name"` OwnerID uuid.UUID `json:"owner_id"` Members []User `json:"members"` CreatedAt types.Date `json:"created_at"` UpdatedAt types.Date `json:"updated_at"` }
Group model
type Image ¶
type Image struct { ID uuid.UUID `json:"id"` Filename string `json:"filename"` StoragePath string `json:"storagepath"` Sha256 string `json:"sha256"` Size int `json:"size"` Height int `json:"height"` Width int `json:"width"` OwnerID uuid.UUID `json:"owner_id"` CreatedAt types.Date `json:"created_at"` UpdatedAt types.Date `json:"updated_at"` }
Image structure models the same table
type ImageShare ¶
type ImageShare struct {}
ImageShare structure models a share
func NewImageShare ¶
func NewImageShare(image *Image, user *User) *ImageShare
NewImageShare creates a new ImageShare struct
type Profile ¶
type Profile struct { ID uuid.UUID `json:"id"` UserID uuid.UUID `json:"user_id"` BackgroundID uuid.UUID `json:"background_id"` ProfileID uuid.UUID `json:"profile_id"` CreatedAt types.Date `json:"created_at"` UpdatedAt types.Date `json:"updated_at"` }
Profile holds special profile information
func NewProfile ¶
NewProfile returns a new profile object
type Role ¶
type Role struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Description string `json:"description"` CreatedAt types.Date `json:"created_at"` UpdatedAt types.Date `json:"updated_at"` }
Role is used for access control
type User ¶
type User struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Username string `json:"username"` Email string `json:"email"` Password string `json:"password"` Token uuid.UUID `json:"token"` CreatedAt types.Date `json:"created_at"` UpdatedAt types.Date `json:"updated_at"` }
User holds the user model
Source Files ¶
Click to show internal directories.
Click to hide internal directories.