package
0.0.0-20240506023614-4edbe0b3572a
Repository: https://github.com/rohitkmishra/iamversedemo.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
CreateComment handler.
CreateEmojiHandler creates a new emoji record.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeleteRepost deletes an existing repost.
GetAccessToken generates and sends a new access token iff there is a valid refresh token.
No description provided by the author
GetAllPostsHandler retrieves all posts visible to the current user.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetLikeComment handler to fetch all likes for a comment.
GetLikePost handler to fetch all likes for a post.
GetLikeStatus checks if a user has already liked an entity (post or comment).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetRepostsForPost retrieves reposts for a given post ID and includes user details in the response.
GetUserByID retrieves a user by ID.
No description provided by the author
No description provided by the author
No description provided by the author
GetVisiblePosts retrieves posts visible to a specific user.
LikeComment handles liking or unliking a comment.
No description provided by the author
LoginUser handler.
LogoutUser revokes the user's authentication tokens (e.g., access and refresh tokens).
API endpoint to handle payment requests.
Handler function for reposting a post.
No description provided by the author
No description provided by the author
Function to toggle post visibility for a user.
Define a new function that accepts a Fiber context and calls TogglePostVisibility.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
PaymentRequest struct for parsing payment request JSON.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Define a struct to hold user data.
No description provided by the author