server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: MIT Imports: 15 Imported by: 5

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()

server/ routes.go: maps urls to functions (from handlers.go) handlers.go: actual work done here server.go: simple interface to start the server.

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