ServerConfig constructor
ServerConfig({
- String host = '127.0.0.1',
- int port = Db.mongoDefaultPort,
- bool? isSecure,
- bool? tlsAllowInvalidCertificates,
- Uint8List? tlsCAFileContent,
- Uint8List? tlsCertificateKeyFileContent,
- String? tlsCertificateKeyFilePassword,
- ClientMetadata? clientMetadata,
- bool loadBalanced = false,
- bool safeAtlas = false,
Implementation
ServerConfig(
{this.host = '127.0.0.1',
this.port = Db.mongoDefaultPort,
bool? isSecure,
bool? tlsAllowInvalidCertificates,
this.tlsCAFileContent,
this.tlsCertificateKeyFileContent,
this.tlsCertificateKeyFilePassword,
this.clientMetadata,
this.loadBalanced = false,
this.safeAtlas = false})
: isSecure = isSecure ?? false,
tlsAllowInvalidCertificates = tlsAllowInvalidCertificates ?? false;