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{}, + } +}