server

package
v0.0.1-0...-132fcf6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: MIT Imports: 15 Imported by: 0

README

The server has the following url endpoints. The source of the content for the endpoint is listed, server/routes.go maps requests to handlers & server/handlers.go encode the content appropriately for the response.

/ - root.go/root() /conformance - conformance.go/conformance() /api - openapi.go/api()

Documentation

Index

Constants

View Source
const (
	HTTPStatusOk          = 200
	HTTPStatusNotModified = 304
	HTTPStatusServerError = 500
	HTTPStatusClientError = 400

	HTTPMethodGET  = "GET"
	HTTPMethodHEAD = "HEAD"
)
View Source
const DEFAULT_RESULT_LIMIT = 10

This is the default max number of features to return for feature collection reqeusts

Variables

Functions

func StartServer

func StartServer(p data_provider.Provider)

Types

type HandlerError

type HandlerError struct {
	Code        string `json:"code"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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