add version command and add build information to metrics

Signed-off-by: David Christofas <dchristofas@owncloud.com>
This commit is contained in:
David Christofas
2020-09-25 13:31:14 +02:00
parent ff8fc23ce5
commit 0578092c6f
13 changed files with 142 additions and 32 deletions
-8
View File
@@ -22,7 +22,6 @@ type Options struct {
Handler http.Handler
Metrics *metrics.Metrics
Flags []cli.Flag
Namespace string
Middlewares alice.Chain
}
@@ -72,13 +71,6 @@ func Flags(val []cli.Flag) Option {
}
}
// Namespace provides a function to set the namespace option.
func Namespace(val string) Option {
return func(o *Options) {
o.Namespace = val
}
}
// Handler provides a function to set the Handler option.
func Handler(h http.Handler) Option {
return func(o *Options) {