Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controllers ¶
type Controllers struct {
Post PostController
}
Controllers all Controller object injected here
type PostController ¶
type PostController interface { GetList(ctx *gin.Context) GetDetail(ctx *gin.Context) Create(ctx *gin.Context) Delete(ctx *gin.Context) Update(ctx *gin.Context) }
func NewPostDelivery ¶
func NewPostDelivery( srv service.PostService, logger *logrus.Logger, ) PostController
type PostHandler ¶
type PostHandler struct { Service service.PostService Logger *logrus.Logger }
func (*PostHandler) Create ¶
func (c *PostHandler) Create(ctx *gin.Context)
func (*PostHandler) Delete ¶
func (c *PostHandler) Delete(ctx *gin.Context)
func (*PostHandler) GetDetail ¶
func (c *PostHandler) GetDetail(ctx *gin.Context)
func (*PostHandler) GetList ¶
func (c *PostHandler) GetList(ctx *gin.Context)
func (*PostHandler) Update ¶
func (c *PostHandler) Update(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.