From 848ffb8ff2993971fc6c66a0bba7302043d5fc4a Mon Sep 17 00:00:00 2001 From: Tue Date: Wed, 5 Oct 2022 14:08:01 +0700 Subject: [PATCH] fix code --- usermngmt.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/usermngmt.go b/usermngmt.go index b1215ce..664bc04 100644 --- a/usermngmt.go +++ b/usermngmt.go @@ -86,3 +86,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{}, + } +}