Documentation ¶
Index ¶
- type ProviderIndex
- type Server
- func (server *Server) DeleteUserByIDHandler(res http.ResponseWriter, req *http.Request)
- func (server *Server) GetUserByEmailHandler(res http.ResponseWriter, req *http.Request)
- func (server *Server) GetUserByIDHandler(res http.ResponseWriter, req *http.Request)
- func (server *Server) LogoutHandler(res http.ResponseWriter, req *http.Request)
- func (server *Server) RootHandler(res http.ResponseWriter, req *http.Request)
- func (server *Server) SocialCallbackHandler(res http.ResponseWriter, req *http.Request)
- func (server *Server) SocialredirectHandler(res http.ResponseWriter, req *http.Request)
- func (server *Server) UserProfileHandler(res http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderIndex ¶
ProviderIndex : mind your own business
type Server ¶
type Server struct { DB *gorm.DB Router *mux.Router ProviderIndex *ProviderIndex Config models.Config }
Server : variable for common use
func (*Server) DeleteUserByIDHandler ¶
func (server *Server) DeleteUserByIDHandler(res http.ResponseWriter, req *http.Request)
DeleteUserByIDHandler : delete user filtering by user id
func (*Server) GetUserByEmailHandler ¶
func (server *Server) GetUserByEmailHandler(res http.ResponseWriter, req *http.Request)
GetUserByEmailHandler : select user by email addresses and return detailed infos
func (*Server) GetUserByIDHandler ¶
func (server *Server) GetUserByIDHandler(res http.ResponseWriter, req *http.Request)
GetUserByIDHandler : select user by id and return detailed infos
func (*Server) LogoutHandler ¶
func (server *Server) LogoutHandler(res http.ResponseWriter, req *http.Request)
LogoutHandler : logut function
func (*Server) RootHandler ¶
func (server *Server) RootHandler(res http.ResponseWriter, req *http.Request)
RootHandler : showing login page
func (*Server) SocialCallbackHandler ¶
func (server *Server) SocialCallbackHandler(res http.ResponseWriter, req *http.Request)
SocialCallbackHandler : function executed after return from social network
func (*Server) SocialredirectHandler ¶
func (server *Server) SocialredirectHandler(res http.ResponseWriter, req *http.Request)
SocialredirectHandler : redirect to social login page of the provider chosen
func (*Server) UserProfileHandler ¶
func (server *Server) UserProfileHandler(res http.ResponseWriter, req *http.Request)
UserProfileHandler : showing page with user infos
Click to show internal directories.
Click to hide internal directories.