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 ¶
- Variables
- func FourOhFour(res http.ResponseWriter, req *http.Request)
- func HandleFit(res http.ResponseWriter, req *http.Request)
- func HandleGetType(res http.ResponseWriter, req *http.Request)
- func HandleSearch(res http.ResponseWriter, req *http.Request)
- func HandleVersion(res http.ResponseWriter, req *http.Request)
- func StartServer()
- type Error
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/
Types ¶
Click to show internal directories.
Click to hide internal directories.