controllers

package
v0.0.0-...-719f63a Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControllerError

func ControllerError(c echo.Context) error

func ControllerOK

func ControllerOK(c echo.Context) error

func ResponseWithRequestID

func ResponseWithRequestID(req *http.Request, resp interface{})

Types

type ErrorResponse

type ErrorResponse struct {
	ErrorStruct `json:"error"`
}

type ErrorStruct

type ErrorStruct struct {
	Code      string `json:"code"`
	Message   string `json:"message"`
	RequestID int64  `json:"requestID"`
}

Jump to

Keyboard shortcuts

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