Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtBlacklist ¶
Login Struct
type SearchResult ¶
type SearchResult struct { Users []UserDetailsPublic Videos []VideoPublic }
type User ¶
type User struct { gorm.Model Name string Email string Password string Picture_ID string Description string Verified bool Videos []Video `gorm:"ForeignKey:UserID"` Comments []Comment `gorm:"ForeignKey:UserID"` Likes []Like `gorm:"ForeignKey:UserID"` }
User struct for DB and backend stuff
func (User) GetPrivateUser ¶
func (user User) GetPrivateUser() UserDetailsPrivate
func (User) GetPublicUser ¶
func (user User) GetPublicUser() UserDetailsPublic
type UserDetailsPrivate ¶
type UserDetailsPrivate struct { UserID uint Name string Email string Description string Picture_ID string Verified bool Videos []VideoPublic Comments []Comment Likes []Like }
UserDetails for Private Endpoints (Settings etc.)
type UserDetailsPublic ¶
type UserDetailsPublic struct { UserID uint Name string Description string Picture_ID string Videos []VideoPublic }
UserDetails for Public Endpoints (Profile Page etc)
type VerificationCode ¶ added in v1.0.2
type VerificationCode struct { ID uint `gorm:"primaryKey"` UserID uint Code string Expiry time.Time }
VerificationCode struct
type VideoContent ¶
type VideoFull ¶
type VideoFull struct { VideoStats Video VideoContent VideoContent }
type VideoPublic ¶
type VideoPublic struct { UUID uuid.UUID Title string Description string UploadDate time.Time Views int Likes int UserID uint }
func GetPublicVideo ¶
func GetPublicVideo(video Video) VideoPublic
Click to show internal directories.
Click to hide internal directories.