mirror of
https://codeberg.org/icewind/haze.git
synced 2026-08-02 12:14:46 +02:00
add basic partitioning support
This commit is contained in:
parent
37f467deff
commit
8f7c4e1078
2 changed files with 67 additions and 2 deletions
|
|
@ -8,10 +8,10 @@ mod objectstore;
|
|||
mod oc;
|
||||
mod office;
|
||||
mod onlyoffice;
|
||||
mod partitioning;
|
||||
mod push;
|
||||
mod sftp;
|
||||
// mod sharding;
|
||||
mod redis;
|
||||
mod sftp;
|
||||
mod sharded;
|
||||
mod smb;
|
||||
mod webhook;
|
||||
|
|
@ -28,6 +28,7 @@ pub use crate::service::objectstore::ObjectStore;
|
|||
use crate::service::oc::Oc;
|
||||
pub use crate::service::office::Office;
|
||||
pub use crate::service::onlyoffice::OnlyOffice;
|
||||
use crate::service::partitioning::Partitioning;
|
||||
pub use crate::service::push::NotifyPush;
|
||||
use crate::service::redis::Redis;
|
||||
use crate::service::sftp::{Sftp, SftpKey};
|
||||
|
|
@ -311,6 +312,8 @@ pub enum ServiceType {
|
|||
FrankenPhp,
|
||||
/// Webhook test listener
|
||||
Webhook,
|
||||
/// Enable DB partitioning for mariadb
|
||||
Partitioning,
|
||||
}
|
||||
|
||||
#[enum_dispatch]
|
||||
|
|
@ -328,6 +331,7 @@ pub enum Service {
|
|||
SingleShard(SingleShard),
|
||||
ShardingMigrate(ShardingMigrate),
|
||||
ShardingMigrateUnset(ShardingMigrateUnset),
|
||||
Partitioning(Partitioning),
|
||||
Sftp(Sftp),
|
||||
SftpKey(SftpKey),
|
||||
Kaspersky(Kaspersky),
|
||||
|
|
@ -371,6 +375,7 @@ impl Service {
|
|||
ServiceType::ShardingMigrateUnset => {
|
||||
Some(vec![Service::ShardingMigrateUnset(ShardingMigrateUnset)])
|
||||
}
|
||||
ServiceType::Partitioning => Some(vec![Service::Partitioning(Partitioning)]),
|
||||
ServiceType::Dav => Some(vec![Service::Dav(Dav)]),
|
||||
ServiceType::Sftp => Some(vec![Service::Sftp(Sftp)]),
|
||||
ServiceType::SftpKey => Some(vec![Service::SftpKey(SftpKey)]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue