handler

package
v0.0.0-...-7e22837 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	DB       db.Database
	Logger   zerolog.Logger
	ESClient *elasticsearch.Client
}

func New

func New(database db.Database, esClient *elasticsearch.Client, logger zerolog.Logger) *Handler

func (*Handler) CreatePost

func (h *Handler) CreatePost(c *gin.Context)

func (*Handler) DeletePost

func (h *Handler) DeletePost(c *gin.Context)

func (*Handler) GetPost

func (h *Handler) GetPost(c *gin.Context)

func (*Handler) GetPosts

func (h *Handler) GetPosts(c *gin.Context)

func (*Handler) Register

func (h *Handler) Register(group *gin.RouterGroup)

func (*Handler) SearchPosts

func (h *Handler) SearchPosts(c *gin.Context)

func (*Handler) UpdatePost

func (h *Handler) UpdatePost(c *gin.Context)

Jump to

Keyboard shortcuts

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