Documentation ¶
Index ¶
- func SaveProfileImage(s *session.Session, file *multipart.FileHeader) (string, error)
- type Server
- func (server *Server) CreateComment(c *gin.Context)
- func (server *Server) CreatePost(c *gin.Context)
- func (server *Server) CreateUser(c *gin.Context)
- func (server *Server) DeleteComment(c *gin.Context)
- func (server *Server) DeletePost(c *gin.Context)
- func (server *Server) DeleteUser(c *gin.Context)
- func (server *Server) ForgotPassword(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) GetUserPosts(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) 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveProfileImage ¶
IF YOU ARE USING AMAZON S3
Types ¶
type Server ¶
func (*Server) CreateComment ¶
func (*Server) CreatePost ¶
func (*Server) CreateUser ¶
func (*Server) DeleteComment ¶
func (*Server) DeletePost ¶
func (*Server) DeleteUser ¶
func (*Server) ForgotPassword ¶
func (*Server) GetComments ¶
func (*Server) GetUserPosts ¶
func (*Server) Initialize ¶
func (*Server) ResetPassword ¶
func (*Server) UnLikePost ¶
func (*Server) UpdateAvatar ¶
func (*Server) UpdateComment ¶
func (*Server) UpdatePost ¶
func (*Server) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.