Spaces:
Sleeping
Sleeping
File size: 879 Bytes
287a0bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
use serde::Deserialize;
#[derive(Deserialize)]
/// The type of memberlist provider to use
/// # Options
/// - CustomResource: Use a custom resource to get the memberlist
pub(crate) enum MemberlistProviderType {
CustomResource,
}
/// The configuration for the memberlist provider.
/// # Options
/// - CustomResource: Use a custom resource to get the memberlist
#[derive(Deserialize)]
pub(crate) enum MemberlistProviderConfig {
CustomResource(CustomResourceMemberlistProviderConfig),
}
/// The configuration for the custom resource memberlist provider.
/// # Fields
/// - memberlist_name: The name of the custom resource to use for the memberlist.
/// - queue_size: The size of the queue to use for the channel.
#[derive(Deserialize)]
pub(crate) struct CustomResourceMemberlistProviderConfig {
pub(crate) memberlist_name: String,
pub(crate) queue_size: usize,
}
|