Documentation ¶
Index ¶
- func ConfigureOAuthHandler(ctx context.Context, baseURL string) error
- func DefaultHandler(w http.ResponseWriter, r *http.Request)
- func ErrorHandler(w http.ResponseWriter, r *http.Request)
- func LogOutHandler(w http.ResponseWriter, r *http.Request)
- func OAuthCallbackHandler(w http.ResponseWriter, r *http.Request)
- func OAuthLoginHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureOAuthHandler ¶
ConfigureOAuthHandler initializes auth handler
func DefaultHandler ¶
func DefaultHandler(w http.ResponseWriter, r *http.Request)
DefaultHandler handles index page
func ErrorHandler ¶
func ErrorHandler(w http.ResponseWriter, r *http.Request)
ErrorHandler handles all app errors
func LogOutHandler ¶
func LogOutHandler(w http.ResponseWriter, r *http.Request)
LogOutHandler resets cookie and redirects to home page
func OAuthCallbackHandler ¶
func OAuthCallbackHandler(w http.ResponseWriter, r *http.Request)
OAuthCallbackHandler handles oauth callback
func OAuthLoginHandler ¶
func OAuthLoginHandler(w http.ResponseWriter, r *http.Request)
OAuthLoginHandler handles oauth login
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.