handlers

package
v0.0.0-...-82247c3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func IdMappingHandler

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

func LabelGeneratorHandler

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

func StartServer

func StartServer(portNumber int) (err error)

func StatusHandler

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

Types

type Message

type Message 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