fix code #10

Merged
nguyenphamquangtue merged 1 commits from feature/merchant into master 2022-10-05 07:08:24 +00:00
1 changed files with 10 additions and 0 deletions
Showing only changes of commit 848ffb8ff2 - Show all commits

View File

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