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
}
UserController for User Data
func NewUserController ¶
func NewUserController(s *mgo.Session) *UserController
NewUserController Create a new User Controller
func (UserController) AddUser ¶
func (uc UserController) AddUser(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
AddUser creates a new user
func (UserController) DeleteUser ¶
func (uc UserController) DeleteUser(w http.ResponseWriter, req *http.Request, p httprouter.Params)
DeleteUser removes an existing user
func (UserController) GetUser ¶
func (uc UserController) GetUser(w http.ResponseWriter, r *http.Request, p httprouter.Params)
GetUser - Reads an existing user
Click to show internal directories.
Click to hide internal directories.