handlers

package
v0.0.0-...-2fda438 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET  = "GET"
	POST = "POST"
)

Variables

This section is empty.

Functions

func EchoHandler

func EchoHandler(w http.ResponseWriter, r *http.Request)

func StartServer

func StartServer(port int) error

func StatusHandler

func StatusHandler(w http.ResponseWriter, r *http.Request)

Types

type ErrorMessage

type ErrorMessage struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Error   string `json:"error,omitempty"`
}

type Status

type Status struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	Description string `json:"description"`
	Documents   string `json:"documents"`
}

Jump to

Keyboard shortcuts

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