handler

package
v0.0.0-...-6e65144 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Categories []*model.Category
)

Functions

func APIResponse

func APIResponse(c echo.Context, status int, message string) error

func APIResponseError

func APIResponseError(c echo.Context, status int, message string, err error) error

func APIResponseOK

func APIResponseOK(c echo.Context, data interface{}) error

Types

type APIErrorResponse

type APIErrorResponse struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type Handler

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

func NewHandler

func NewHandler(
	dbRepository database.DBRepository,
) *Handler

func (*Handler) GetCircle

func (h *Handler) GetCircle(c echo.Context) error

func (*Handler) ListCategory

func (h *Handler) ListCategory(c echo.Context) error

func (*Handler) ListCircle

func (h *Handler) ListCircle(c echo.Context) error

Jump to

Keyboard shortcuts

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