handler

package
v0.1.1-0...-9230f7c Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 ProductHandler

type ProductHandler interface {
	GetFamimaProduct(echo.Context) error
	GetLawsonProduct(echo.Context) error
}

Jump to

Keyboard shortcuts

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