controllers

package
v0.4.9-no-login-entrop... Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGenre

func AddGenre()

func GetRecommendations

func GetRecommendations(c *fiber.Ctx) error

GetRecommendations returns media recommendations for a user based on collaborative filtering

func SearchMedia

func SearchMedia(c *fiber.Ctx) error

Types

type MediaController

type MediaController struct {
	// contains filtered or unexported fields
}

func NewMediaController

func NewMediaController(storage models.MediaStorage) *MediaController

func (*MediaController) AddMedia

func (mc *MediaController) AddMedia(c *fiber.Ctx) error

WARN: this is probably wrong

func (*MediaController) GetMedia

func (mc *MediaController) GetMedia(c *fiber.Ctx) error

GetMedia retrieves media information based on the media ID

type MemberController

type MemberController struct {
	// contains filtered or unexported fields
}

MemberController allows for the retrieval of user information

func NewMemberController

func NewMemberController(storage models.MemberStorage) *MemberController

func (*MemberController) DeleteMember

func (mc *MemberController) DeleteMember(c *fiber.Ctx) error

DeleteMember handles the deletion of a user

func (*MemberController) GetMember

func (mc *MemberController) GetMember(c *fiber.Ctx) error

GetMember retrieves user information based on the user ID

func (*MemberController) UpdateMember

func (mc *MemberController) UpdateMember(c *fiber.Ctx) error

UpdateMember handles the updating of user information

type ReviewController

type ReviewController struct {
	// contains filtered or unexported fields
}

func NewReviewController

func NewReviewController(rs models.RatingStorage) *ReviewController

func (*ReviewController) GetAverageRatings

func (rc *ReviewController) GetAverageRatings(c *fiber.Ctx) error

GetAverageRatings retrieves the average number of stars for the general models.Rating type (i.e. not track or cast ratings)

func (*ReviewController) GetLatestRatings

func (rc *ReviewController) GetLatestRatings(ctx *fiber.Ctx) error

func (*ReviewController) GetRatings

func (rc *ReviewController) GetRatings(c *fiber.Ctx) error

GetRatings retrieves reviews for a specific media item based on the media ID

func (*ReviewController) PostRating

func (rc *ReviewController) PostRating(c *fiber.Ctx) error

PostRating handles the submission of a user's review for a specific media item

func (*ReviewController) UpdateRating

func (rc *ReviewController) UpdateRating(c *fiber.Ctx) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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