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