Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommentController ¶
type CommentController struct {
// contains filtered or unexported fields
}
CommentController holds DB
func NewCommentController ¶
func NewCommentController(userRepo user.Repository, itmRepo item.Repository, repo item.CommentRepository) *CommentController
NewCommentController constructs a controller
func (*CommentController) CreateCommentHandler ¶
func (c *CommentController) CreateCommentHandler(w http.ResponseWriter, r *http.Request)
CreateCommentHandler creates comment
func (*CommentController) ListCommentHandler ¶
func (c *CommentController) ListCommentHandler(w http.ResponseWriter, r *http.Request)
ListCommentHandler list items
type ItemController ¶
type ItemController struct {
// contains filtered or unexported fields
}
ItemController holds DB
func NewItemController ¶
func NewItemController(userRepo user.Repository, prjRepo project.Repository, repo item.Repository) *ItemController
NewItemController constructs a controller
func (*ItemController) CreateItemHandler ¶
func (c *ItemController) CreateItemHandler(w http.ResponseWriter, r *http.Request)
CreateItemHandler creates item
func (*ItemController) ListItemHandler ¶
func (c *ItemController) ListItemHandler(w http.ResponseWriter, r *http.Request)
ListItemHandler list items
func (*ItemController) ShowItemHandler ¶
func (c *ItemController) ShowItemHandler(w http.ResponseWriter, r *http.Request)
ShowItemHandler shows item
Source Files ¶
Click to show internal directories.
Click to hide internal directories.