Documentation
¶
Index ¶
- func AuthorizeOauth(w http.ResponseWriter, r *http.Request)
- func GetHandleOAuth2Callback(conn *model.DBConnection) func(http.ResponseWriter, *http.Request)
- func InteractiveOauth(conn *model.DBConnection, port string)
- func Login(conn *model.DBConnection, w http.ResponseWriter, r *http.Request) (*model.User, *model.Author)
- func Logout(conn *model.DBConnection) func(http.ResponseWriter, *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeOauth ¶
func AuthorizeOauth(w http.ResponseWriter, r *http.Request)
func GetHandleOAuth2Callback ¶
func GetHandleOAuth2Callback(conn *model.DBConnection) func(http.ResponseWriter, *http.Request)
Function that handles the callback from the Google server
func InteractiveOauth ¶
func InteractiveOauth(conn *model.DBConnection, port string)
func Login ¶
func Login(conn *model.DBConnection, w http.ResponseWriter, r *http.Request) (*model.User, *model.Author)
func Logout ¶
func Logout(conn *model.DBConnection) func(http.ResponseWriter, *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.