Documentation ¶
Index ¶
- Constants
- func AuthTest(w http.ResponseWriter, r *http.Request)
- func DeleteManga(w http.ResponseWriter, r *http.Request)
- func DeleteMangas(w http.ResponseWriter, r *http.Request)
- func DeleteNotification(w http.ResponseWriter, r *http.Request)
- func Manga(w http.ResponseWriter, r *http.Request)
- func Mangas(w http.ResponseWriter, r *http.Request)
- func NewMangas(w http.ResponseWriter, r *http.Request)
- func NewOAuth() negroni.Handler
- func NewRouter() *mux.Router
- func NewSignInRouter() *mux.Router
- func Notification(w http.ResponseWriter, r *http.Request)
- func Notifications(w http.ResponseWriter, r *http.Request)
- func SaveManga(w http.ResponseWriter, r *http.Request)
- func SaveMangas(w http.ResponseWriter, r *http.Request)
- func SignIn(w http.ResponseWriter, r *http.Request)
- func SignOut() negroni.HandlerFunc
- func UpdateManga(w http.ResponseWriter, r *http.Request)
- func Users(w http.ResponseWriter, r *http.Request)
- func WrapWithCheckAuth(handlerFunc http.HandlerFunc) http.HandlerFunc
- type JsonErr
- type Route
- type Routes
- type UserInfo
Constants ¶
View Source
const (
SESSION_USER_ID = "user_id"
)
Variables ¶
This section is empty.
Functions ¶
func AuthTest ¶
func AuthTest(w http.ResponseWriter, r *http.Request)
This Handler is used only to check if the user is indeed authenticated
func DeleteMangas ¶
func DeleteMangas(w http.ResponseWriter, r *http.Request)
Handler to delete mangas
func DeleteNotification ¶
func DeleteNotification(w http.ResponseWriter, r *http.Request)
Handler to delete a notification
func Mangas ¶
func Mangas(w http.ResponseWriter, r *http.Request)
Handler to fetch the list of mangas
func NewMangas ¶
func NewMangas(w http.ResponseWriter, r *http.Request)
Handler to fetch the list of mangas
func NewSignInRouter ¶
Returns a router for signing in Google account
func Notification ¶
func Notification(w http.ResponseWriter, r *http.Request)
Handler to fetch a notification
func Notifications ¶
func Notifications(w http.ResponseWriter, r *http.Request)
Handler to fetch the list of notifications
func UpdateManga ¶
func UpdateManga(w http.ResponseWriter, r *http.Request)
Handler to update a manga
func WrapWithCheckAuth ¶
func WrapWithCheckAuth(handlerFunc http.HandlerFunc) http.HandlerFunc
Wrap the HandlerFunc by checking if the user is indeed authenticated
Types ¶
Click to show internal directories.
Click to hide internal directories.