Documentation ¶
Index ¶
- func CheckIfLiked(videoID uint, userID string) (bool, error)
- func CheckJwtOnBlacklist(jwt string) (bool, error)
- func ConnectToDatabase()
- func ConnectToMongo()
- func CreateComment(comment model.Comment) error
- func CreateLike(videoID uint, userID string) error
- func CreateVideo(video model.Video) error
- func CreateVideoContent(video *model.VideoContent) map[string]interface{}
- func DeleteLike(videoID uint, userID string) error
- func DeleteUser(userID string) error
- func DeleteVideo(videoId string, userId uint) error
- func DeleteVideoContent(contentID primitive.ObjectID) map[string]interface{}
- func GenerateVerificationCode(userID uint) (string, error)
- func GetAllUsers() ([]model.UserDetailsPublic, error)
- func GetComments(videoID string) ([]model.Comment, error)
- func GetContentID(videoUUID string) (string, error)
- func GetPrivateUser(userID string) (*model.UserDetailsPrivate, error)
- func GetRecomendations(limit int) (*[]model.Video, error)
- func GetRecomendationsForUser(limit int, uuid uint) (*[]model.Video, error)
- func GetSearchResult(query string) (*model.SearchResult, error)
- func GetUser(userID string) (*model.UserDetailsPublic, error)
- func GetVideo(videoId string) (*model.Video, error)
- func GetVideoContent(contentID primitive.ObjectID) map[string]interface{}
- func GetVideoID(videoUUID string) (uint, error)
- func GetVideoThumbnail(contentID primitive.ObjectID) (interface{}, error)
- func GetVideos() (*[]model.Video, error)
- func GetVideosFromUser(userID string) (*[]model.Video, error)
- func LoginUser(login_data model.UserLogin) map[string]interface{}
- func Logout(jwt string) error
- func RegisterUser(user model.User) map[string]interface{}
- func UpdateUser(updateUser *model.User) error
- func UpdateVideo(updateVideo model.Video, userId uint) error
- func VerifyUser(userID uint, code string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckJwtOnBlacklist ¶
Check if JWT is on blacklist
func ConnectToDatabase ¶
func ConnectToDatabase()
func ConnectToMongo ¶
func ConnectToMongo()
func CreateComment ¶
func CreateVideoContent ¶
func CreateVideoContent(video *model.VideoContent) map[string]interface{}
func DeleteLike ¶
func DeleteVideoContent ¶
func GenerateVerificationCode ¶ added in v1.0.2
Generate Verification Code for User
func GetContentID ¶
func GetPrivateUser ¶
func GetPrivateUser(userID string) (*model.UserDetailsPrivate, error)
Get PrivateInformation for User for Settings etc.
func GetSearchResult ¶
func GetSearchResult(query string) (*model.SearchResult, error)
func GetUser ¶
func GetUser(userID string) (*model.UserDetailsPublic, error)
Get User Information by ID
func GetVideoContent ¶
func GetVideoID ¶
func GetVideoThumbnail ¶ added in v1.0.1
func GetVideosFromUser ¶
Get all Videos from one user
func RegisterUser ¶
Register User in Database with Error Handling
func VerifyUser ¶ added in v1.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.