Documentation ¶
Overview ¶
Package config holds types and functions related to service configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server Server `json:"server"` Cache Cache `json:"cache"` Logging Logging `json:"logging"` Postgres string `json:"postgres"` Schema string `json:"schema"` Sources []Source `json:"sources"` FontsDir string `json:"fontsDir"` Path string `json:"-"` }
Config is the parsed configuration file
Postgis Configuration ¶
Postgres connection string can either be a URI or key/value pairs - for more details see:
http://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
Sample PostGIS ¶
"postgres": "postgresql://user:password@/mvt"
type Source ¶
type Source struct { Prefix string `json:"prefix"` Name string `json:"name"` Layers []string `json:"layers"` }
Source configures a set of layers to be displayed in a vector map. A source is composed of a name (which must be unique in the set of sources configured), a URI (which points to a datasource) and the set of layers to query.
Postgis Database:
{ "name": "opmplc_su", "layers": [ "namedplace", "building" ] }
Click to show internal directories.
Click to hide internal directories.