summaryrefslogtreecommitdiffstats
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.go b/config.go
index 7fe2d72..9109a4b 100644
--- a/config.go
+++ b/config.go
@@ -30,6 +30,8 @@ type Config struct {
NetInterface string
Layout string
MaxLogSize int64
+ ExportPort string
+ Extensions []string
}
func Parse(in io.Reader, conf *Config) error {
@@ -109,6 +111,10 @@ func Parse(in io.Reader, conf *Config) error {
return err
}
conf.MaxLogSize = int64(iv)
+ case "export":
+ conf.ExportPort = kv[1]
+ case "extensions":
+ conf.Extensions = strings.Split(kv[1], ",")
}
}