controllers

package
v0.0.0-...-3a281b6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: CC0-1.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveProfileImage

func SaveProfileImage(s *session.Session, file *multipart.FileHeader) (string, error)

IF YOU ARE USING AMAZON S3

Types

type Server

type Server struct {
	DB     *gorm.DB
	Router *gin.Engine
}

func (*Server) CreateComment

func (server *Server) CreateComment(c *gin.Context)

func (*Server) CreatePost

func (server *Server) CreatePost(c *gin.Context)

func (*Server) CreateUser

func (server *Server) CreateUser(c *gin.Context)

func (*Server) DeleteComment

func (server *Server) DeleteComment(c *gin.Context)

func (*Server) DeletePost

func (server *Server) DeletePost(c *gin.Context)

func (*Server) DeleteUser

func (server *Server) DeleteUser(c *gin.Context)

func (*Server) ForgotPassword

func (server *Server) ForgotPassword(c *gin.Context)

func (*Server) GetComments

func (server *Server) GetComments(c *gin.Context)

func (*Server) GetLikes

func (server *Server) GetLikes(c *gin.Context)

func (*Server) GetPost

func (server *Server) GetPost(c *gin.Context)

func (*Server) GetPosts

func (server *Server) GetPosts(c *gin.Context)

func (*Server) GetUser

func (server *Server) GetUser(c *gin.Context)

func (*Server) GetUserPosts

func (server *Server) GetUserPosts(c *gin.Context)

func (*Server) GetUsers

func (server *Server) GetUsers(c *gin.Context)

func (*Server) Initialize

func (server *Server) Initialize(Dbdriver, DbUser, DbPassword, DbPort, DbHost, DbName string)

func (*Server) LikePost

func (server *Server) LikePost(c *gin.Context)

func (*Server) Login

func (server *Server) Login(c *gin.Context)

func (*Server) ResetPassword

func (server *Server) ResetPassword(c *gin.Context)

func (*Server) Run

func (server *Server) Run(addr string)

func (*Server) SignIn

func (server *Server) SignIn(email, password string) (map[string]interface{}, error)

func (*Server) UnLikePost

func (server *Server) UnLikePost(c *gin.Context)

func (*Server) UpdateAvatar

func (server *Server) UpdateAvatar(c *gin.Context)

func (*Server) UpdateComment

func (server *Server) UpdateComment(c *gin.Context)

func (*Server) UpdatePost

func (server *Server) UpdatePost(c *gin.Context)

func (*Server) UpdateUser

func (server *Server) UpdateUser(c *gin.Context)

Jump to

Keyboard shortcuts

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