EasyServerConfig constructor
EasyServerConfig({
- EasyLogHandler? logger,
- EasyLogLevel? logLevel,
- String? logTag,
- String? logFilePath,
- int? logFileBackup,
- int? logFileMaxBytes,
- required String host,
- required int port,
- String? pwd,
- String secret = 'secret',
- bool binary = false,
- int heart = 60 * 1000,
- int timeout = 60 * 1000 * 3,
- int reqIdCache = 32,
- String reqIpHeader = 'x-forwarded-for',
- int gzipLevel = 4,
- int gzipMinBytes = 512,
- List<
String> gzipNotContentTypes = const [], - String xPoweredByHeader = 'shelf_easy',
- Map<
String, String> ? httpHeaders, - String? sslKeyFile,
- String? sslKeyPasswd,
- String? sslCerFile,
- String? sslCerPasswd,
- int? backlog,
- List<
String> ? links, - EasyUniDbConfig? uniDbConfig,
- 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 = {};