Documentation ¶
Index ¶
- type UserController
- func (uc UserController) CreateUser(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (uc UserController) GetUser(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (uc UserController) RemoveUser(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (uc UserController) UpdateAvatar(w http.ResponseWriter, r *http.Request, p httprouter.Params)
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 represents the controller for operating on the User resource
func NewUserController ¶
func NewUserController(s *mgo.Session) *UserController
NewUserController returns a instance of UserController structure
func (UserController) CreateUser ¶
func (uc UserController) CreateUser(w http.ResponseWriter, r *http.Request, p httprouter.Params)
CreateUser creates a new user resource
func (UserController) GetUser ¶
func (uc UserController) GetUser(w http.ResponseWriter, r *http.Request, p httprouter.Params)
GetUser retrives an individual user resource
func (UserController) RemoveUser ¶
func (uc UserController) RemoveUser(w http.ResponseWriter, r *http.Request, p httprouter.Params)
RemoveUser removes an existing user resource
func (UserController) UpdateAvatar ¶
func (uc UserController) UpdateAvatar(w http.ResponseWriter, r *http.Request, p httprouter.Params)
UpdateAvatar update a user avatar
Click to show internal directories.
Click to hide internal directories.