controllers

package
v0.0.0-...-87ef350 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderIndex

type ProviderIndex struct {
	Providers    []string
	ProvidersMap map[string]string
}

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

Jump to

Keyboard shortcuts

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