delivery

package
v0.0.0-...-8499f05 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrInvalidInput defines the error response returned by the handler
	//if the request is not valid JSON or have any invalid value.
	ErrInvalidInput = echo.NewHTTPError(http.StatusBadRequest, "Invalid input")
)

Functions

func NewTaxObjectHandler

func NewTaxObjectHandler(e *echo.Echo, taxObjUcase taxobj.Usecase)

NewTaxObjectHandler create the HTTPTaxObjectHandler with customed routing for echo.

Types

type HTTPTaxObjectHandler

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

HTTPTaxObjectHandler defines the http delivery layer for the tax object.

func (*HTTPTaxObjectHandler) CreateTaxObject

func (handler *HTTPTaxObjectHandler) CreateTaxObject(c echo.Context) (err error)

CreateTaxObject handle request for creating the tax object.

Jump to

Keyboard shortcuts

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