api

package
v0.0.0-...-964c2da Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckACMAPICall

func CheckACMAPICall(c echo.Context, acm acm.ACM, perm string, f func())

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