Documentation ¶
Index ¶
- type PostController
- func (ctrl *PostController) Create(c *gin.Context)
- func (ctrl *PostController) Delete(c *gin.Context)
- func (ctrl *PostController) DeleteCollection(c *gin.Context)
- func (ctrl *PostController) Get(c *gin.Context)
- func (ctrl *PostController) List(c *gin.Context)
- func (ctrl *PostController) Update(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostController ¶
type PostController struct {
// contains filtered or unexported fields
}
func NewPostController ¶
func NewPostController(ds store.IStore) *PostController
func (*PostController) Create ¶
func (ctrl *PostController) Create(c *gin.Context)
Create a new post
func (*PostController) Delete ¶
func (ctrl *PostController) Delete(c *gin.Context)
func (*PostController) DeleteCollection ¶
func (ctrl *PostController) DeleteCollection(c *gin.Context)
func (*PostController) Get ¶
func (ctrl *PostController) Get(c *gin.Context)
func (*PostController) List ¶
func (ctrl *PostController) List(c *gin.Context)
func (*PostController) Update ¶
func (ctrl *PostController) Update(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.