Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { App AppConfig `mapstructure:"app"` Mongo mongo.Config `mapstructure:"mongo"` Server HttpServer `mapstructure:"server"` Logger logger.Config `mapstructure:"logger"` Maps MapsConfig `mapstructure:"maps"` }
func New ¶
func New(configDir string) *Configuration
type HttpServer ¶
type HttpServer struct {
Port string `mapstructure:"port"`
}
type MapsConfig ¶
type MapsConfig struct { LocationQueryPlaceholder string `mapstructure:"location_query_placeholder"` ProviderAPIKeyPlaceholder string `mapstructure:"provider_api_key_placeholder"` OSM MapsProvider `mapstructure:"osm"` BingMaps MapsProvider `mapstructure:"bing_maps"` GoogleMaps MapsProvider `mapstructure:"google_maps"` }
type MapsProvider ¶
Click to show internal directories.
Click to hide internal directories.