web

package
v0.0.0-...-fe7b80c Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2015 License: MIT Imports: 12 Imported by: 1

Documentation

Overview

web is a package used by SDETool2 to start a JSON server for use with the SDE. for more information check the server section in the SDETool2 readme

Index

Constants

This section is empty.

Variables

View Source
var SDE sde.SDE

Functions

func FourOhFour

func FourOhFour(res http.ResponseWriter, req *http.Request)

FourOhFour is a 404 handler.

func HandleFit

func HandleFit(res http.ResponseWriter, req *http.Request)

HandleFit accepts a fit via POST

func HandleGetType

func HandleGetType(res http.ResponseWriter, req *http.Request)

HandleGetType is used to handle /type/[TypeID]

func HandleSearch

func HandleSearch(res http.ResponseWriter, req *http.Request)

HandleSerach is used to handle /search/[search]

func HandleVersion

func HandleVersion(res http.ResponseWriter, req *http.Request)

HandleVersion is used to handle /version/

func StartServer

func StartServer()

StartServer starts an SDETool server.

Types

type Error

type Error struct {
	Text string `json:"error"`
}

Error is a structure to represent an Error that is marshaled

Jump to

Keyboard shortcuts

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