api

package
v0.0.0-...-f154cc1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInternalServer error = errors.New("Internal Server Error")
View Source
var ErrInvalidCredentials error = errors.New("Invalid API Key")
View Source
var ErrProvideAPIKey error = errors.New("API Key is required in the header. X-Api-Key")

Functions

func AllowHeaders

func AllowHeaders(next echo.HandlerFunc) echo.HandlerFunc

func HandleCallback

func HandleCallback(c echo.Context) error

func HandlePayments

func HandlePayments(c echo.Context) error

func HandlePaymentsTransfer

func HandlePaymentsTransfer(e echo.Context) error

func RequireAPIKey

func RequireAPIKey(next echo.HandlerFunc) echo.HandlerFunc

func StartAPIRouter

func StartAPIRouter(e *echo.Echo)

Types

type Response

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

Jump to

Keyboard shortcuts

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