mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
27 lines
439 B
JavaScript
27 lines
439 B
JavaScript
class PartitionConfig {
|
|
constructor(config) {
|
|
this.config = config;
|
|
}
|
|
|
|
getPartitionMap() {
|
|
return this.config.partitions;
|
|
}
|
|
|
|
getOverrideMap() {
|
|
return this.config.overrides;
|
|
}
|
|
|
|
getPool() {
|
|
return this.config.pool;
|
|
}
|
|
|
|
getIdentity() {
|
|
return this.config.identity;
|
|
}
|
|
|
|
getRedisConfig() {
|
|
return this.config.redis;
|
|
}
|
|
}
|
|
|
|
export { PartitionConfig };
|