Back to

Package api

Latest Go to latest

The highest tagged major version is .

Published: Sep 20, 2020 | License: GPL3 | Module:


func ErrorResponseWriter

func ErrorResponseWriter(c echo.Context, code int, err error)

func RequestLoader

func RequestLoader(c echo.Context, v interface{}) bool

func ResponseWriter

func ResponseWriter(c echo.Context, payload interface{})

type Response

type Response struct {
	Status string      `json:"status"`
	Error  string      `json:"error,omitempty"`
	Data   interface{} `json:"data,omitempty"`

type TokenRequest

type TokenRequest struct {
	Token string `json:"token" query:"token"`

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier