handler

package
v0.0.0-...-6852176 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorResponse

func ErrorResponse(ctx *gin.Context, stCode int, message string)

func IndexHandler

func IndexHandler(c *gin.Context)

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(srv *service.Service, logger *logrus.Logger) *Handler

func (*Handler) CreateArticle

func (h *Handler) CreateArticle(ctx *gin.Context)

func (*Handler) DeleteArticle

func (h *Handler) DeleteArticle(ctx *gin.Context)

func (*Handler) GetAllArticles

func (h *Handler) GetAllArticles(ctx *gin.Context)

func (*Handler) GetOneArticle

func (h *Handler) GetOneArticle(ctx *gin.Context)

func (*Handler) NewRouter

func (h *Handler) NewRouter() *gin.Engine

func (*Handler) SingIn

func (h *Handler) SingIn(ctx *gin.Context)

func (*Handler) SingUp

func (h *Handler) SingUp(ctx *gin.Context)

func (*Handler) UpdateArticle

func (h *Handler) UpdateArticle(ctx *gin.Context)

func (*Handler) UserIdentification

func (h *Handler) UserIdentification(ctx *gin.Context)

type Index

type Index struct {
	EndPoint    string `json:"endpoint"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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