handler

package
v0.0.0-...-44619a4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHandler

func DefaultHandler(w http.ResponseWriter, r *http.Request)

DefaultHandler handles index page

func ErrorHandler

func ErrorHandler(w http.ResponseWriter, r *http.Request, err error, code int)

ErrorHandler handles all app errors

func InitHandlers

func InitHandlers()

InitHandlers initializes OAuth package

func LogOutHandler

func LogOutHandler(w http.ResponseWriter, r *http.Request)

LogOutHandler resets cookie and redirects to index page

func LogoHandler

func LogoHandler(w http.ResponseWriter, r *http.Request)

LogoHandler handles posted queries

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

func ViewHandler

func ViewHandler(w http.ResponseWriter, r *http.Request)

ViewHandler handles view page

Types

This section is empty.

Jump to

Keyboard shortcuts

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