EasyServerConfig constructor

EasyServerConfig({
  1. EasyLogHandler? logger,
  2. EasyLogLevel? logLevel,
  3. String? logTag,
  4. String? logFilePath,
  5. int? logFileBackup,
  6. int? logFileMaxBytes,
  7. required String host,
  8. required int port,
  9. String? pwd,
  10. String secret = 'secret',
  11. bool binary = false,
  12. int heart = 60 * 1000,
  13. int timeout = 60 * 1000 * 3,
  14. int reqIdCache = 32,
  15. String reqIpHeader = 'x-forwarded-for',
  16. int gzipLevel = 4,
  17. int gzipMinBytes = 512,
  18. List<String> gzipNotContentTypes = const [],
  19. String xPoweredByHeader = 'shelf_easy',
  20. Map<String, String>? httpHeaders,
  21. String? sslKeyFile,
  22. String? sslKeyPasswd,
  23. String? sslCerFile,
  24. String? sslCerPasswd,
  25. int? backlog,
  26. List<String>? links,
  27. EasyUniDbConfig? uniDbConfig,
  28. int isolateInstances = 1,
})

Implementation

EasyServerConfig({
  super.logger,
  super.logLevel,
  super.logTag,
  super.logFilePath,
  super.logFileBackup,
  super.logFileMaxBytes,
  required this.host,
  required this.port,
  this.pwd,
  this.secret = 'secret',
  this.binary = false,
  this.heart = 60 * 1000,
  this.timeout = 60 * 1000 * 3,
  this.reqIdCache = 32,
  this.reqIpHeader = 'x-forwarded-for',
  this.gzipLevel = 4,
  this.gzipMinBytes = 512,
  this.gzipNotContentTypes = const [],
  this.xPoweredByHeader = 'shelf_easy',
  this.httpHeaders,
  this.sslKeyFile,
  this.sslKeyPasswd,
  this.sslCerFile,
  this.sslCerPasswd,
  this.backlog,
  this.links,
  this.uniDbConfig,
  this.isolateInstances = 1,
}) : clusterLinksConfigs = {};