Documentation
¶
Index ¶
- func DeletePhoto(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func GetAllUsers(c *gin.Context)
- func GetCurrentUser(c *gin.Context)
- func GetPhotoByID(c *gin.Context)
- func GetPhotosByOwnerID(c *gin.Context)
- func GetUserByID(c *gin.Context)
- func HandleMonthlyPayments()
- func Login(c *gin.Context)
- func Ping(c *gin.Context)
- func SignUp(c *gin.Context)
- func SubscribeTo(c *gin.Context)
- func UnsubscribeFrom(c *gin.Context)
- func UpdateUser(c *gin.Context)
- func UploadMultiplePhotos(c *gin.Context)
- func UploadPhoto(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeletePhoto ¶
DeletePhoto deletes a photo from a user's repository
func DeleteUser ¶ added in v0.1.2
DeleteUser deletes the current user
func GetAllUsers ¶
GetAllUsers handles any request to get all the users registered
func GetCurrentUser ¶
Returns the current authenticated user. This information is taken from the context (provided by the auth middleware)
func GetPhotoByID ¶
GetPhotoByID handles any request to get a photo by its ID
func GetPhotosByOwnerID ¶
GetAllPhotosByOwnerID handles requests where the user wants all the photos from a given user
This function can perform text search on the name when providing a query parameter called "name"
func GetUserByID ¶
GetUserByID handles any requests to get a user by its ID
func HandleMonthlyPayments ¶
func HandleMonthlyPayments()
HandleMonthlyPayments handles the payments of all users registered. (It is recommended to call this function in a CRON job)
func SubscribeTo ¶
SubscribeTo handles requests to subscribe the currently authenticated user to another user
func UnsubscribeFrom ¶
UnsubscribeFrom handles requests to unsubscribe the currently authenticated user from another user
func UpdateUser ¶
UpdateUser handles any request to update a user. The authenticated user must be the owner of this account
func UploadMultiplePhotos ¶
UploadMultiplePhotos handles any request to upload multiple photos in a single request
func UploadPhoto ¶
UploadPhoto Handles any request to upload a photo. The user must be authenticated for the photo to be persisted.
Types ¶
This section is empty.