routes

package
v0.0.0-...-3ba4ce3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyReply = APIReply{}

EmptyReply is an empty reply

View Source
var InternalError = APIError{
	ErrorCode:   "internalError",
	Description: "Processing the request failed. This is an internal error.",
}

InternalError is the default Error

View Source
var InvalidParams = APIError{
	ErrorCode:   "invalidParameters",
	Description: "The parameters passed to the function were invalid",
}

InvalidParams signalizes that the JSON parameters are invalid

View Source
var Router *gin.Engine

Router contains all API Endpoints

Functions

func CreateRouter

func CreateRouter()

CreateRouter creates the router

Types

type APIError

type APIError struct {
	ErrorCode   string `json:"errorCode"`
	Description string `json:"description"`
}

APIError is the JSON representation of errors

type APIReply

type APIReply struct {
	Data interface{} `json:"data"`
}

APIReply is the JSON representation of a reply from the API

Jump to

Keyboard shortcuts

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