Documentation ¶
Index ¶
Constants ¶
View Source
const CacheTTL = 365 * 24 * time.Hour
View Source
const GoogleProviderType = "google"
View Source
const OpencageProviderType = "opencage"
Variables ¶
View Source
var DefaultTTL = 180 * 24 * time.Hour
Functions ¶
This section is empty.
Types ¶
type AggregateProvider ¶
type AggregateProvider struct {
// contains filtered or unexported fields
}
type CacheStore ¶
type GeocodingProvider ¶
func NewGeocodingProvider ¶
func NewGeocodingProvider(cs CacheStore, registry *prometheus.Registry, specification config.Specification) (GeocodingProvider, error)
func NewGoogleGeocodeProvider ¶
func NewGoogleGeocodeProvider(key string) (GeocodingProvider, error)
func NewOpencageProvider ¶
func NewOpencageProvider(key string) (GeocodingProvider, error)
type GoogleProvider ¶
type GoogleProvider struct {
// contains filtered or unexported fields
}
type OpencageProvider ¶
type OpencageProvider struct {
// contains filtered or unexported fields
}
type Query ¶
Click to show internal directories.
Click to hide internal directories.