seba-365 tweaking to match mongodb driver refactor
Change-Id: I9be3f9fb9dcc6a1d1879623cc62bd3c99f8b2eae
diff --git a/internal/pkg/settings/Settings.go b/internal/pkg/settings/Settings.go
index b4eb128..6df5eaa 100644
--- a/internal/pkg/settings/Settings.go
+++ b/internal/pkg/settings/Settings.go
@@ -19,6 +19,7 @@
var debug = false
var dummy = false
var mongo = false
+var grpc = true
var mongodb = ""
/*
@@ -48,15 +49,44 @@
func GetDummy() bool {
return dummy
}
+
+/*
+SetMongo - sets useMongo mode
+*/
func SetMongo(useMongo bool) {
mongo = useMongo
}
+
+/*GetMongo - returns the value of mongo
+ */
func GetMongo() bool {
return mongo
}
+
+/*
+SetMongodb - sets the connection string for mongo db used for backups
+*/
func SetMongodb(connectString string) {
mongodb = connectString
}
+
+/*
+GetMongodb - returns the connection string used for connecting to mongo db
+*/
func GetMongodb() string {
return mongodb
}
+
+/*
+SetGrpc - sets useGrpc mode
+*/
+func SetGrpc(useGrpc bool) {
+ grpc = useGrpc
+}
+
+/*
+GetGrpc - returns the value of grpc
+*/
+func GetGrpc() bool {
+ return grpc
+}