app

package
v0.0.0-...-d27190a Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGinRoutes

func InitGinRoutes(svc ports.ArticleService, logger logger.LoggerType, conf appConfig.Config)

Types

type GinHandler

type GinHandler interface {
	CreateArticle(ctx *gin.Context)
	GetArticleByID(ctx *gin.Context)
	GetArticles(ctx *gin.Context)
	GetArticlesByAuthor(ctx *gin.Context)
	GetArticlesByTag(ctx *gin.Context)
	UpdateArticle(ctx *gin.Context)
	DeleteArticle(ctx *gin.Context)
	DeleteArticleAll(ctx *gin.Context)
}

func NewGinHandler

func NewGinHandler(svc ports.ArticleService, secretKey string) GinHandler

Jump to

Keyboard shortcuts

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