Documentation
¶
Index ¶
- Constants
- func RegisterBackend(name string, backend Backend)
- type Api
- type ApiConfig
- type Backend
- type BackendClient
- type BackendConfig
- type CollectionNotFoundError
- type GetCollectionRequest
- type ICollectionsBackend
- type IStacConformance
- type StacCollectionsConformance
- func (r StacCollectionsConformance) AttachHandlers(router ginopenapi.Generator)
- func (r *StacCollectionsConformance) AttachTo(api *Api)
- func (r StacCollectionsConformance) ConformanceClasses() []string
- func (r StacCollectionsConformance) HandleGetCollection(c *gin.Context)
- func (r StacCollectionsConformance) HandleListCollections(c *gin.Context)
- func (r StacCollectionsConformance) LandingPageLinks(request *http.Request) []*stac.Link
- type StacCoreConformance
- func (r StacCoreConformance) AttachHandlers(router ginopenapi.Generator)
- func (r *StacCoreConformance) AttachTo(api *Api)
- func (r StacCoreConformance) ConformanceClasses() []string
- func (r StacCoreConformance) HandleLandingPage(c *gin.Context)
- func (r StacCoreConformance) LandingPageLinks(request *http.Request) []*stac.Link
Constants ¶
View Source
const ( ListCollectionsPath = "/collections" GetCollectionPath = "/collections/:id" )
View Source
const ( RootPath = "/" ServiceDescPath = "/api" ServiceDocPath = "/api.html" )
View Source
const ( ApplicationJSONType = "application/json" OpenAPIYAMLType = "application/x-yaml" HTMLType = "text/html" )
View Source
const ( SelfRel = "self" RootRel = "root" ParentRel = "parent" ServiceDescRel = "service-desc" ServiceDocRel = "service-doc" DataRel = "data" )
View Source
const APIVersion = "0.1.0"
View Source
const STACVersion = "1.1.0"
View Source
const StacCollectionsConformanceURI = "https://api.stacspec.org/v1.0.0/collections"
View Source
const StacCoreConformanceURI = "https://api.stacspec.org/v1.0.0/core"
Variables ¶
This section is empty.
Functions ¶
func RegisterBackend ¶
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) AddConformance ¶
func (api *Api) AddConformance(stac_router IStacConformance)
func (*Api) AddToRouter ¶
func (*Api) ConformsTo ¶
type Backend ¶
type Backend interface {
GetClient(config BackendConfig) (BackendClient, error)
}
type BackendClient ¶
type BackendClient interface {
Close() error
}
type BackendConfig ¶
type CollectionNotFoundError ¶
type CollectionNotFoundError struct {
Id string
}
func (CollectionNotFoundError) Error ¶
func (e CollectionNotFoundError) Error() string
type GetCollectionRequest ¶
type GetCollectionRequest struct {
Id string `path:"id" uri:"id" required:"true"`
}
type ICollectionsBackend ¶
type IStacConformance ¶
type StacCollectionsConformance ¶
type StacCollectionsConformance struct {
// contains filtered or unexported fields
}
func NewStacCollectionsConformance ¶
func NewStacCollectionsConformance(backend ICollectionsBackend) StacCollectionsConformance
func (StacCollectionsConformance) AttachHandlers ¶
func (r StacCollectionsConformance) AttachHandlers(router ginopenapi.Generator)
func (*StacCollectionsConformance) AttachTo ¶
func (r *StacCollectionsConformance) AttachTo(api *Api)
func (StacCollectionsConformance) ConformanceClasses ¶
func (r StacCollectionsConformance) ConformanceClasses() []string
func (StacCollectionsConformance) HandleGetCollection ¶
func (r StacCollectionsConformance) HandleGetCollection(c *gin.Context)
func (StacCollectionsConformance) HandleListCollections ¶
func (r StacCollectionsConformance) HandleListCollections(c *gin.Context)
func (StacCollectionsConformance) LandingPageLinks ¶
func (r StacCollectionsConformance) LandingPageLinks(request *http.Request) []*stac.Link
type StacCoreConformance ¶
type StacCoreConformance struct {
// contains filtered or unexported fields
}
func (StacCoreConformance) AttachHandlers ¶
func (r StacCoreConformance) AttachHandlers(router ginopenapi.Generator)
func (*StacCoreConformance) AttachTo ¶
func (r *StacCoreConformance) AttachTo(api *Api)
func (StacCoreConformance) ConformanceClasses ¶
func (r StacCoreConformance) ConformanceClasses() []string
func (StacCoreConformance) HandleLandingPage ¶
func (r StacCoreConformance) HandleLandingPage(c *gin.Context)
func (StacCoreConformance) LandingPageLinks ¶
func (r StacCoreConformance) LandingPageLinks(request *http.Request) []*stac.Link
Click to show internal directories.
Click to hide internal directories.