Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
added session to our userController
func NewUserController ¶
func NewUserController(s *mgo.Session) *UserController
added session to our userController
func (UserController) CreateUser ¶
func (uc UserController) CreateUser(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (UserController) DeleteUser ¶
func (uc UserController) DeleteUser(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (UserController) GetUser ¶
func (uc UserController) GetUser(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Click to show internal directories.
Click to hide internal directories.