controller

package
v0.0.0-...-3daaeb3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 8 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL