geocatalogo: github.com/go-spatial/geocatalogo/web Index | Files

package web

import "github.com/go-spatial/geocatalogo/web"

Package web - simple HTTP Wrapper

Package web - Simple HTTP Wrapper

Package web - simple HTTP Wrapper

Package web - simple HTTP Wrapper

Index

Package Files

csw3.go openapi.go server.go stac.go

Constants

const VERSION string = "0.8.0"

VERSION provides the supported version of the STAC API specification.

Variables

var SwaggerHTML = "" /* 1739 byte string literal not displayed */

func CSW3OpenSearchHandler Uses

func CSW3OpenSearchHandler(w http.ResponseWriter, r *http.Request, cat *geocatalogo.GeoCatalogue)

CSW3OpenSearchHandler provides a default HTTP API

func CSW3OpenSearchRouter Uses

func CSW3OpenSearchRouter(cat *geocatalogo.GeoCatalogue) *mux.Router

CSW3OpenSearchRouter provides CSW 3 OpenSearch Routing

func EmitResponseNotOK Uses

func EmitResponseNotOK(w http.ResponseWriter, contentType string, prettyPrint bool, exception *search.Exception)

EmitResponseNotOK provides HTTP response for unsuccessful requests

func EmitResponseOK Uses

func EmitResponseOK(w http.ResponseWriter, contentType string, prettyPrint bool, results *search.Results)

EmitResponseOK provides HTTP response for successful requests

func Results2STACFeatureCollection Uses

func Results2STACFeatureCollection(limit int, url string, r *search.Results, s *STACFeatureCollection)

func STACAPIDescription Uses

func STACAPIDescription(w http.ResponseWriter, r *http.Request, cat *geocatalogo.GeoCatalogue)

STACAPIDescription provides the API description

func STACCollections Uses

func STACCollections(w http.ResponseWriter, r *http.Request, cat *geocatalogo.GeoCatalogue)

STACCollections provides STAC compliant collection descriptions

func STACItems Uses

func STACItems(w http.ResponseWriter, r *http.Request, cat *geocatalogo.GeoCatalogue)

STACItems provides STAC compliant Items matching filters

func STACOpenAPI Uses

func STACOpenAPI(w http.ResponseWriter, r *http.Request, cat *geocatalogo.GeoCatalogue)

STACOpenAPI generates an OpenAPI document or Swagger representation

func STACRouter Uses

func STACRouter(cat *geocatalogo.GeoCatalogue) *mux.Router

STACRouter provides STAC API Routing

type Link struct {
    Rel   string `json:"rel"`
    Type  string `json:"type,omitempty"`
    Title string `json:"title,omitempty"`
    Href  string `json:"href"`
}

type Properties Uses

type Properties struct {
    // contains filtered or unexported fields
}

type STACCatalogDefinition Uses

type STACCatalogDefinition struct {
    Version     string `json:"stac_version"`
    Id          string `json:"id"`
    Title       string `json:"title,omitempty"`
    Description string `json:"description"`
    Links       []Link `json:"links"`
}

type STACFeatureCollection Uses

type STACFeatureCollection struct {
    Type           string         `json:"type"`
    Features       []STACItem     `json:"features"`
    Links          []Link         `json:"links"`
    NumberMatched  int            `json:"numberMatched"`
    NumberReturned int            `json:"numberReturned"`
    SearchMetadata SearchMetadata `json:"search:metadata"`
}

type STACItem Uses

type STACItem struct {
    Type        string              `json:"type,omitempty"`
    Id          string              `json:"id,omitempty"`
    StacVersion string              `json:"stac_version"`
    BBox        [4]float64          `json:"bbox,omitempty"`
    Geometry    metadata.Geometry   `json:"geometry,omitempty"`
    Properties  metadata.Properties `json:"properties,omitempty"`
    Links       []Link              `json:"links,omitempty"`
    Assets      map[string]Link     `json:"assets,omitempty"`
}

type STACSearch Uses

type STACSearch struct {
    Limit       int        `json:"limit,omitempty"`
    Datetime    string     `json:"datetime,omitempty"`
    Collections []string   `json:"collections,omitempty"`
    Bbox        [4]float64 `json:"bbox,omitempty"`
}

type SearchMetadata Uses

type SearchMetadata struct {
    Next     string `json:"next"`
    Returned int    `json:"returned"`
    Limit    int    `json:"limit,omitempty"`
    Matched  int    `json:"matched,omitempty"`
}

Package web imports 11 packages (graph). Updated 2019-11-17. Refresh now. Tools for package owners.