-
Notifications
You must be signed in to change notification settings - Fork 1
/
gbdx.go
35 lines (32 loc) · 1.23 KB
/
gbdx.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package gbdx
import (
"time"
)
// GBDX_HTTP_TIMEOUT is the default timeout used by the context in http requests.
const GBDX_HTTP_TIMEOUT = 60 * time.Second
// endpoints holds where the various gbdx endpoints live.
var endpoints = struct {
tokens string
browse string
browseJSON string
browseMetadata string
thumbnail string
orders string
ordersHeartbeat string
ordersLocation string
record string
catalogSearch string
catalogHeartbeat string
}{
tokens: "https://geobigdata.io/auth/v1/oauth/token/",
browse: "https://geobigdata.io/thumbnails/v1/browse/",
browseJSON: "https://geobigdata.io/thumbnails/v1/get/",
browseMetadata: "https://geobigdata.io/thumbnails/v1/metadata/",
thumbnail: "https://geobigdata.io/thumbnails/v1/thumbnail/",
orders: "https://geobigdata.io/orders/v2/order/",
ordersHeartbeat: "https://geobigdata.io/orders/v2/heartbeat/",
ordersLocation: "https://geobigdata.io/orders/v2/location",
record: "https://geobigdata.io/catalog/v1/record/",
catalogSearch: "https://geobigdata.io/catalog/v1/search?includeRelationships=false",
catalogHeartbeat: "https://geobigdata.io/catalog/v1/heartbeat/",
}