Documentation ¶
Index ¶
Constants ¶
View Source
const ( JSONContentType = "application/json" HTMLContentType = "text/html" // Not yet supported )
View Source
const ( HTTPStatusOk = 200 HTTPStatusNotModified = 304 HTTPStatusServerError = 500 HTTPStatusClientError = 400 HTTPMethodGET = "GET" HTTPMethodHEAD = "HEAD" )
View Source
const DEFAULT_PAGE_SIZE = 10
Variables ¶
View Source
var Provider data_provider.Provider
Functions ¶
func StartServer ¶
func StartServer(p data_provider.Provider)
Types ¶
type HandlerError ¶
type HandlerError struct {
Details string `json:"detail"`
}
Click to show internal directories.
Click to hide internal directories.