add config version
This commit is contained in:
parent
c2d3f35962
commit
c7e3385ebc
@ -10,6 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
ConfigVersion int `json:"configversion"`
|
||||||
Port int `json:"port"`
|
Port int `json:"port"`
|
||||||
EnablePrometheus bool `json:"enableprometheus"`
|
EnablePrometheus bool `json:"enableprometheus"`
|
||||||
EnableRendering bool `json:"enablerendering"`
|
EnableRendering bool `json:"enablerendering"`
|
||||||
@ -138,6 +139,7 @@ func ParseConfig(filename string) (*Config, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cfg := Config{
|
cfg := Config{
|
||||||
|
ConfigVersion: 1,
|
||||||
Port: 8080,
|
Port: 8080,
|
||||||
EnableRendering: true,
|
EnableRendering: true,
|
||||||
EnablePrometheus: true,
|
EnablePrometheus: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user