Documentation ¶
Index ¶
- Variables
- func AcceptHandler(next http.Handler) http.Handler
- func AuthHandler(next http.Handler) http.Handler
- func BodyHandler(v interface{}) func(http.Handler) http.Handler
- func ContentTypeHandler(next http.Handler) http.Handler
- func LoggingHandler(next http.Handler) http.Handler
- func RecoverHandler(next http.Handler) http.Handler
- type AppContext
- func (c *AppContext) AuthUserHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) CreateMarkerHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) CreateUserHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) DeleteMarkerHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) MarkerHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) MarkerWithUsersHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) MarkersHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) SkillsHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) UpdateMarkerHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) UpdateUserHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) UserHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) UserUnfollowHandler(w http.ResponseWriter, r *http.Request)
- func (c *AppContext) UserWithSkillsHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PublicKey []byte
)
Functions ¶
func AuthHandler ¶
func (c *appContext) authHandler(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)
Click to show internal directories.
Click to hide internal directories.