handler

package
v0.0.0-...-e1a8def Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetIndexResponse

type GetIndexResponse struct {
	Message string `json:"message"`
}

type GetIndexTemplateData

type GetIndexTemplateData struct {
	Posts []model.Post
}

type GetPingResponse

type GetPingResponse struct {
	Message string `json:"message"`
}

type GetPostListErrorResponse

type GetPostListErrorResponse struct {
	Error string `json:"error"`
}

type Handler

type Handler struct {
	DB           *sqlx.DB
	HtmlTemplate *template.Template
}

func (*Handler) GetIndex

func (h *Handler) GetIndex(ctx *fasthttp.RequestCtx)

func (*Handler) GetPing

func (h *Handler) GetPing(ctx *fasthttp.RequestCtx)

func (*Handler) GetPostList

func (h *Handler) GetPostList(ctx *fasthttp.RequestCtx)

Jump to

Keyboard shortcuts

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