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:06:26 +02:00
parent ff8fc23ce5
commit 9fc09cba43
9 changed files with 71 additions and 1 deletions
+1
View File
@@ -17,6 +17,7 @@ func Server(opts ...Option) grpc.Service {
grpc.Namespace(options.Config.GRPC.Namespace),
grpc.Logger(options.Logger),
grpc.Flags(options.Flags...),
grpc.Version(options.Config.Server.Version),
)
if err := proto.RegisterAccountsServiceHandler(service.Server(), handler); err != nil {