From 193ddba163999944effd436a3f2b1bb9fdb27a68 Mon Sep 17 00:00:00 2001 From: nguyenphamquangtue <44862367+nguyenphamquangtue@users.noreply.github.com> Date: Wed, 5 Oct 2022 16:37:16 +0700 Subject: [PATCH] Update devicemngt.go --- devicemngt.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devicemngt.go b/devicemngt.go index 52bf38a..66cbd97 100644 --- a/devicemngt.go +++ b/devicemngt.go @@ -57,3 +57,13 @@ func Init(config Config) (*Service, error) { func GetInstance() *Service { return s } + +// GetConnectOptions ... +func GetConnectOptions(Host, DBName string) mongodb.Config { + return mongodb.Config{ + Host: Host, + DBName: DBName, + Standalone: &mongodb.ConnectStandaloneOpts{}, + TLS: &mongodb.ConnectTLSOpts{}, + } +}