setBootstrapConnectionOptsFromDbConfig sets the bootstrapConnectionOpts struct with values from the db config.
(opts *bootstrapConnectionOpts, dbConfig DbConfig)
| 424 | |
| 425 | // setBootstrapConnectionOptsFromDbConfig sets the bootstrapConnectionOpts struct with values from the db config. |
| 426 | func setBootstrapConnectionOptsFromDbConfig(opts *bootstrapConnectionOpts, dbConfig DbConfig) { |
| 427 | if dbConfig.Server != nil { |
| 428 | opts.server = *dbConfig.Server |
| 429 | } |
| 430 | opts.username = dbConfig.Username |
| 431 | opts.password = dbConfig.Password |
| 432 | opts.x509CertPath = dbConfig.CertPath |
| 433 | opts.x509KeyPath = dbConfig.KeyPath |
| 434 | opts.caCertPath = dbConfig.CACertPath |
| 435 | } |
| 436 | |
| 437 | func createBootstrapConnectionWithOpts(ctx context.Context, opts bootstrapConnectionOpts) (base.BootstrapConnection, error) { |
| 438 | if base.ServerIsWalrus(opts.server) { |
no outgoing calls
no test coverage detected