This commit is contained in:
Tue 2022-10-05 14:08:01 +07:00
parent 59426ad48f
commit 848ffb8ff2
1 changed files with 10 additions and 0 deletions

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