Documentation ¶
Index ¶
Constants ¶
View Source
const CreatePath = "/user"
View Source
const DeletePath = "/user/{id}"
View Source
const (
GetPath = "/user/{id}"
)
View Source
const UpdatePath = "/user/{id}"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserController ¶
type CreateUserController struct {
// contains filtered or unexported fields
}
func NewCreateController ¶
func (*CreateUserController) AddRoute ¶
func (c *CreateUserController) AddRoute(router *mux.Router)
func (*CreateUserController) Create ¶
func (c *CreateUserController) Create(w http.ResponseWriter, r *http.Request)
type DeleteUserController ¶
type DeleteUserController struct {
// contains filtered or unexported fields
}
func NewDeleteController ¶
func (*DeleteUserController) AddRoute ¶
func (c *DeleteUserController) AddRoute(router *mux.Router)
func (*DeleteUserController) Delete ¶
func (c *DeleteUserController) Delete(w http.ResponseWriter, r *http.Request)
type GetUserController ¶
type GetUserController struct {
// contains filtered or unexported fields
}
func NewGetController ¶
func (*GetUserController) AddRoute ¶
func (c *GetUserController) AddRoute(router *mux.Router)
func (*GetUserController) Get ¶
func (c *GetUserController) Get(w http.ResponseWriter, r *http.Request)
type UpdateController ¶
type UpdateController struct {
// contains filtered or unexported fields
}
func NewUpdateUserController ¶
func (*UpdateController) AddRoute ¶
func (c *UpdateController) AddRoute(router *mux.Router)
func (*UpdateController) Update ¶
func (c *UpdateController) Update(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.