handlers

package
v0.0.0-...-5d070c9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2016 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PublicKey []byte
)

Functions

func AcceptHandler

func AcceptHandler(next http.Handler) http.Handler

func AuthHandler

func AuthHandler(next http.Handler) http.Handler

func (c *appContext) authHandler(next http.Handler) http.Handler {

func BodyHandler

func BodyHandler(v interface{}) func(http.Handler) http.Handler

func ContentTypeHandler

func ContentTypeHandler(next http.Handler) http.Handler

func LoggingHandler

func LoggingHandler(next http.Handler) http.Handler

func RecoverHandler

func RecoverHandler(next http.Handler) http.Handler

Types

type AppContext

type AppContext struct {
	Db *mgo.Database
}

func (*AppContext) AuthUserHandler

func (c *AppContext) AuthUserHandler(w http.ResponseWriter, r *http.Request)

POST: /api/v1/user/login/ handler

func (*AppContext) CreateMarkerHandler

func (c *AppContext) CreateMarkerHandler(w http.ResponseWriter, r *http.Request)

func (*AppContext) CreateUserHandler

func (c *AppContext) CreateUserHandler(w http.ResponseWriter, r *http.Request)

POST: /api/v1/auth/ handler

func (*AppContext) DeleteMarkerHandler

func (c *AppContext) DeleteMarkerHandler(w http.ResponseWriter, r *http.Request)

func (*AppContext) MarkerHandler

func (c *AppContext) MarkerHandler(w http.ResponseWriter, r *http.Request)

func (*AppContext) MarkerWithUsersHandler

func (c *AppContext) MarkerWithUsersHandler(w http.ResponseWriter, r *http.Request)

func (*AppContext) MarkersHandler

func (c *AppContext) MarkersHandler(w http.ResponseWriter, r *http.Request)

func (*AppContext) SkillsHandler

func (c *AppContext) SkillsHandler(w http.ResponseWriter, r *http.Request)

func (*AppContext) UpdateMarkerHandler

func (c *AppContext) UpdateMarkerHandler(w http.ResponseWriter, r *http.Request)

func (*AppContext) UpdateUserHandler

func (c *AppContext) UpdateUserHandler(w http.ResponseWriter, r *http.Request)

func (*AppContext) UserHandler

func (c *AppContext) UserHandler(w http.ResponseWriter, r *http.Request)

func (*AppContext) UserUnfollowHandler

func (c *AppContext) UserUnfollowHandler(w http.ResponseWriter, r *http.Request)

func (*AppContext) UserWithSkillsHandler

func (c *AppContext) UserWithSkillsHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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