add config version

This commit is contained in:
NatureFreshMilk 2019-04-04 08:15:27 +02:00
parent c2d3f35962
commit c7e3385ebc

View File

@ -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,