Documentation
¶
Index ¶
- func FindUserByID(db *gorm.DB, userID uint32) (*models.User, error)
- func FindUserProfileByID(db *gorm.DB, userID uint32) (*models.Profile, error)
- func GetSocialLinksFromBody(requestBody map[string]string) *models.SocialLink
- func SaveProfileImage(s *session.Session, file *multipart.FileHeader) (string, error)
- func ValidateProfileFields(profile *models.Profile) map[string]string
- type Server
- func (server *Server) CommonCommentAndReplyesCode(c *gin.Context) (uint64, uint32, *models.User, *models.Post)
- func (server *Server) CreateComment(c *gin.Context)
- func (server *Server) CreateCommentReplye(c *gin.Context)
- func (server *Server) CreatePost(c *gin.Context)
- func (server *Server) CreateUser(c *gin.Context)
- func (server *Server) CreateUserProfile(c *gin.Context)
- func (server *Server) DeleteComment(c *gin.Context)
- func (server *Server) DeleteCommentReplye(c *gin.Context)
- func (server *Server) DeletePost(c *gin.Context)
- func (server *Server) DeleteUser(c *gin.Context)
- func (server *Server) DeleteUserProfile(c *gin.Context)
- func (server *Server) ForgotPassword(c *gin.Context)
- func (server *Server) GetCommentReplyes(c *gin.Context)
- func (server *Server) GetComments(c *gin.Context)
- func (server *Server) GetLikes(c *gin.Context)
- func (server *Server) GetPost(c *gin.Context)
- func (server *Server) GetPosts(c *gin.Context)
- func (server *Server) GetUser(c *gin.Context)
- func (server *Server) GetUserProfile(c *gin.Context)
- func (server *Server) GetUserProfilePosts(c *gin.Context)
- func (server *Server) GetUserProfiles(c *gin.Context)
- func (server *Server) GetUsers(c *gin.Context)
- func (server *Server) Initialize(Dbdriver, DbUser, DbPassword, DbPort, DbHost, DbName string)
- func (server *Server) LikePost(c *gin.Context)
- func (server *Server) Login(c *gin.Context)
- func (server *Server) ResetPassword(c *gin.Context)
- func (server *Server) Run(addr string)
- func (server *Server) SignIn(email, password string) (map[string]interface{}, error)
- func (server *Server) UnLikePost(c *gin.Context)
- func (server *Server) UpdateACommentReplyes(c *gin.Context)
- func (server *Server) UpdateAUserProfile(c *gin.Context)
- func (server *Server) UpdateAvatar(c *gin.Context)
- func (server *Server) UpdateComment(c *gin.Context)
- func (server *Server) UpdatePost(c *gin.Context)
- func (server *Server) UpdateUser(c *gin.Context)
- func (server *Server) UpdateUserProfileImage(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindUserProfileByID ¶
func GetSocialLinksFromBody ¶
func GetSocialLinksFromBody(requestBody map[string]string) *models.SocialLink
func SaveProfileImage ¶
IF YOU ARE USING AMAZON S3
Types ¶
type Server ¶
func (*Server) CommonCommentAndReplyesCode ¶
func (*Server) CreateComment ¶
func (*Server) CreateCommentReplye ¶
func (*Server) CreatePost ¶
func (*Server) CreateUser ¶
func (*Server) CreateUserProfile ¶
func (*Server) DeleteComment ¶
func (*Server) DeleteCommentReplye ¶
func (*Server) DeletePost ¶
func (*Server) DeleteUser ¶
func (*Server) DeleteUserProfile ¶
func (*Server) ForgotPassword ¶
func (*Server) GetCommentReplyes ¶
func (*Server) GetComments ¶
func (*Server) GetUserProfile ¶
func (*Server) GetUserProfilePosts ¶
func (*Server) GetUserProfiles ¶
func (*Server) Initialize ¶
func (*Server) ResetPassword ¶
func (*Server) UnLikePost ¶
func (*Server) UpdateACommentReplyes ¶
func (*Server) UpdateAUserProfile ¶
TASK: NEED TO MODIFIED
func (*Server) UpdateAvatar ¶
func (*Server) UpdateComment ¶
func (*Server) UpdatePost ¶
func (*Server) UpdateUser ¶
func (*Server) UpdateUserProfileImage ¶
Click to show internal directories.
Click to hide internal directories.