api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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{})

Types

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"`
}

Jump to

Keyboard shortcuts

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