Update devicemngt.go

This commit is contained in:
nguyenphamquangtue 2022-10-05 16:37:16 +07:00 committed by GitHub
parent ad8cc00df6
commit 193ddba163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -57,3 +57,13 @@ func Init(config Config) (*Service, error) {
func GetInstance() *Service { func GetInstance() *Service {
return s return s
} }
// GetConnectOptions ...
func GetConnectOptions(Host, DBName string) mongodb.Config {
return mongodb.Config{
Host: Host,
DBName: DBName,
Standalone: &mongodb.ConnectStandaloneOpts{},
TLS: &mongodb.ConnectTLSOpts{},
}
}