2019-06-09 13:40:19 +02:00
|
|
|
package main
|
|
|
|
|
2019-07-23 21:49:46 +02:00
|
|
|
// ZipFile source zipped file
|
|
|
|
type ZipFile struct {
|
2019-06-09 13:40:19 +02:00
|
|
|
Filename string
|
|
|
|
Filepath string
|
|
|
|
Content []byte
|
|
|
|
}
|
|
|
|
|
2019-07-23 21:49:46 +02:00
|
|
|
// XMLFile contains prices
|
|
|
|
type XMLFile struct {
|
|
|
|
Content []byte
|
|
|
|
}
|
|
|
|
|
2019-06-09 13:40:19 +02:00
|
|
|
// FuelPricesConfig is the main configuration
|
|
|
|
type FuelPricesConfig struct {
|
2019-07-23 21:49:46 +02:00
|
|
|
ConfigPath string
|
2019-06-09 13:40:19 +02:00
|
|
|
RemoteURL string
|
|
|
|
RemoteFilename string
|
|
|
|
XPathBase string
|
|
|
|
Pos []string
|
|
|
|
Types []string
|
2019-06-15 13:55:48 +02:00
|
|
|
Table string
|
2019-06-09 13:40:19 +02:00
|
|
|
InfluxHost string
|
|
|
|
InfluxPort int
|
|
|
|
InfluxUser string
|
|
|
|
InfluxPass string
|
|
|
|
InfluxDB string
|
|
|
|
}
|
|
|
|
|
|
|
|
// Price contains price of points of sale
|
|
|
|
type Price struct {
|
|
|
|
ID string
|
|
|
|
Fuel string
|
|
|
|
Amount float64
|
|
|
|
}
|