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

Index

Package Files

csw3.go server.go stac.go

Constants

const VERSION string = "0.6.2"

VERSION provides the supported version of the STAC API specification.

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 EmitResponse Uses

func EmitResponse(w http.ResponseWriter, code int, mime string, response []byte)

EmitResponseOK provides HTTP response for successful requests

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 Results2STACItemCollection Uses

func Results2STACItemCollection(r *search.Results, s *STACItemCollection)

func STACAPIDescription Uses

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

STACAPIDescription provides the API description

func STACItems Uses

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

STACItems provides STAC compliant Items matching filters

func STACRouter Uses

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

STACRouter provides STAC API Routing

func Struct2JSON Uses

func Struct2JSON(iface interface{}, prettyPrint bool) []byte
type Link struct {
    Rel  string `json:"rel"`
    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,omitempty"`
    Title       string `json:"title,omitempty"`
    Description string `json:"description,omitempty"`
    Links       []Link `json:"links,omitempty"`
}

type STACItem Uses

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

type STACItemCollection Uses

type STACItemCollection struct {
    Type          string     `json:"type"`
    NextPageToken int        `json:"nextPageToken,omitempty"`
    Items         []STACItem `json:"items"`
}

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