Documentation
¶
Index ¶
- type Server
- func (server *Server) CreateComment(c *gin.Context)
- func (server *Server) CreateTrip(c *gin.Context)
- func (server *Server) CreateUser(c *gin.Context)
- func (server *Server) DeleteComment(c *gin.Context)
- func (server *Server) DeleteTrip(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) GetTrip(c *gin.Context)
- func (server *Server) GetTrips(c *gin.Context)
- func (server *Server) GetUser(c *gin.Context)
- func (server *Server) GetUserTrips(c *gin.Context)
- func (server *Server) GetUsers(c *gin.Context)
- func (server *Server) Home(w http.ResponseWriter, r *http.Request)
- func (server *Server) Initialize(Dbdriver, DbUser, DbPassword, DbPort, DbHost, DbName string)
- func (server *Server) LikeTrip(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) UnLikeTrip(c *gin.Context)
- func (server *Server) UpdateAvatar(c *gin.Context)
- func (server *Server) UpdateComment(c *gin.Context)
- func (server *Server) UpdateTrip(c *gin.Context)
- func (server *Server) UpdateUser(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server : Struct
func (*Server) CreateComment ¶
CreateComment : function to create a comment
func (*Server) CreateTrip ¶
CreateTrip : function to create a trip
func (*Server) CreateUser ¶
CreateUser : function Post for User
func (*Server) DeleteComment ¶
DeleteComment : function to delete a comment
func (*Server) DeleteTrip ¶
DeleteTrip : function to delete a trip
func (*Server) DeleteUser ¶
DeleteUser : function to delete a specific user
func (*Server) ForgotPassword ¶
ForgotPassword : funtion forgot password
func (*Server) GetComments ¶
GetComments : funtion to get the comments
func (*Server) GetUserTrips ¶
GetUserTrips : function to get the trips of a user
func (*Server) Home ¶
func (server *Server) Home(w http.ResponseWriter, r *http.Request)
Home : server response
func (*Server) Initialize ¶
Initialize : connection to our database
func (*Server) ResetPassword ¶
ResetPassword : funtion to reset a password
func (*Server) UnLikeTrip ¶
UnLikeTrip : funtion to unlike a trip
func (*Server) UpdateAvatar ¶
UpdateAvatar : connect to DigitalOcean to change avatar of an user
func (*Server) UpdateComment ¶
UpdateComment : function to update a comment
func (*Server) UpdateTrip ¶
UpdateTrip : function to update a trip
func (*Server) UpdateUser ¶
UpdateUser : function to update a user