Documentation ¶
Overview ¶
Package config provides functions for parsing command line args and JSON config.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseOptions = _BaseOptions{}
View Source
var DiffFlags = flag.NewFlagSet("diff", flag.ExitOnError)
View Source
var ImportFlags = flag.NewFlagSet("import", flag.ExitOnError)
View Source
var ImportOptions = _ImportOptions{}
View Source
var RunFlags = flag.NewFlagSet("run", flag.ExitOnError)
Functions ¶
func ParseDiffImport ¶
func ParseDiffImport(args []string)
func ParseImport ¶
func ParseImport(args []string)
func ParseRunImport ¶
func ParseRunImport(args []string)
func UsageImport ¶
func UsageImport()
Types ¶
type Config ¶
type Config struct { CacheDir string `json:"cachedir"` DiffDir string `json:"diffdir"` Connection string `json:"connection"` MappingFile string `json:"mapping"` LimitTo string `json:"limitto"` LimitToCacheBuffer float64 `json:"limitto_cache_buffer"` Srid int `json:"srid"` Schemas Schemas `json:"schemas"` ExpireTilesDir string `json:"expiretiles_dir"` ExpireTilesZoom int `json:"expiretiles_zoom"` ReplicationUrl string `json:"replication_url"` ReplicationInterval MinutesInterval `json:"replication_interval"` DiffStateBefore MinutesInterval `json:"diff_state_before"` }
type MinutesInterval ¶
func (*MinutesInterval) UnmarshalJSON ¶
func (d *MinutesInterval) UnmarshalJSON(b []byte) (err error)
Click to show internal directories.
Click to hide internal directories.