controllers

package
v0.0.0-...-99c9ccf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMovie

func AddMovie(client *mongo.Client) gin.HandlerFunc

func AdminReviewUpdate

func AdminReviewUpdate(client *mongo.Client) gin.HandlerFunc

func GetGenres

func GetGenres(client *mongo.Client) gin.HandlerFunc

func GetMovie

func GetMovie(client *mongo.Client) gin.HandlerFunc

func GetMovies

func GetMovies(client *mongo.Client) gin.HandlerFunc

func GetRankings

func GetRankings(client *mongo.Client, c *gin.Context) ([]models.Ranking, error)

func GetRecommendedMovies

func GetRecommendedMovies(client *mongo.Client) gin.HandlerFunc

func GetReviewRanking

func GetReviewRanking(admin_review string, client *mongo.Client, c *gin.Context) (string, int, error)

func GetUsersFavouriteGenres

func GetUsersFavouriteGenres(userId string, client *mongo.Client, c *gin.Context) ([]string, error)

func HashPassword

func HashPassword(password string) (string, error)

func LoginUser

func LoginUser(client *mongo.Client) gin.HandlerFunc

func LogoutHandler

func LogoutHandler(client *mongo.Client) gin.HandlerFunc

func RefreshTokenHandler

func RefreshTokenHandler(client *mongo.Client) gin.HandlerFunc

func RegisterUser

func RegisterUser(client *mongo.Client) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL