handler

package
v0.0.0-...-d4c9315 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	Counter *hold.Counter
}

func (*Handlers) GetCount

func (h *Handlers) GetCount(c echo.Context) error

GetCount

@Summary Get Count @Description Get Count @Produce json @Router /count [get] @Security ApiKeyAuth @Success 200 {object} msg.WebApiSuccess{} @Failure 400 {object} msg.WebApiError{}

func (*Handlers) PostCount

func (h *Handlers) PostCount(c echo.Context) error

PostCount

@Summary Add new count @Description Add new count @Produce json @Router /count [post] @Security ApiKeyAuth @Param count query int false "Count Value" @Success 200 {object} msg.WebApiSuccess{} @Failure 400 {object} msg.WebApiError{}

func (*Handlers) Register

func (h *Handlers) Register(group *echo.Group, middlewares []echo.MiddlewareFunc)

Jump to

Keyboard shortcuts

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