2019-06-09 13:40:19 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
// Srcfile source file
|
|
|
|
type Srcfile struct {
|
|
|
|
Filename string
|
|
|
|
Filepath string
|
|
|
|
Content []byte
|
|
|
|
}
|
|
|
|
|
|
|
|
// FuelPricesConfig is the main configuration
|
|
|
|
type FuelPricesConfig struct {
|
|
|
|
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
|
|
|
|
}
|