handler

package
v0.0.0-...-25593b2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(database db.DB, sessionStore sessions.Store) *Handler

func (*Handler) IndexHandler

func (h *Handler) IndexHandler(res http.ResponseWriter, req *http.Request, user *db.User)

func (*Handler) LoginHandler

func (h *Handler) LoginHandler(res http.ResponseWriter, req *http.Request)

func (*Handler) LogoutHandler

func (h *Handler) LogoutHandler(res http.ResponseWriter, req *http.Request)

func (*Handler) NewQuestionHandler

func (h *Handler) NewQuestionHandler(res http.ResponseWriter, req *http.Request, user *db.User)

func (*Handler) NewTopicGetHandler

func (h *Handler) NewTopicGetHandler(res http.ResponseWriter, req *http.Request, user *db.User)

func (*Handler) NewTopicPostHandler

func (h *Handler) NewTopicPostHandler(res http.ResponseWriter, req *http.Request, user *db.User)

func (*Handler) NotFoundHandler

func (h *Handler) NotFoundHandler(res http.ResponseWriter, req *http.Request)

func (*Handler) OAuthCallback

func (h *Handler) OAuthCallback(res http.ResponseWriter, req *http.Request)

func (*Handler) UnknownErrorHandler

func (h *Handler) UnknownErrorHandler(res http.ResponseWriter, req *http.Request, err error)

func (*Handler) UnvoteForQuestionHandler

func (h *Handler) UnvoteForQuestionHandler(res http.ResponseWriter, req *http.Request, user *db.User)

func (*Handler) ViewTopicHandler

func (h *Handler) ViewTopicHandler(res http.ResponseWriter, req *http.Request, user *db.User)

func (*Handler) ViewTopicsHandler

func (h *Handler) ViewTopicsHandler(res http.ResponseWriter, req *http.Request, user *db.User)

func (*Handler) VoteForQuestionHandler

func (h *Handler) VoteForQuestionHandler(res http.ResponseWriter, req *http.Request, user *db.User)

Jump to

Keyboard shortcuts

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