Better accounting data retrieve

This commit is contained in:
Dominik Werder
2024-06-27 11:03:57 +02:00
parent 8e286b455d
commit 21259e6591
14 changed files with 456 additions and 220 deletions

View File

@@ -287,7 +287,7 @@ impl ScalarType {
BOOL => "bool",
STRING => "string",
Enum => "enum",
ChannelStatus => "ChannelStatus",
ChannelStatus => "channelstatus",
}
}
@@ -307,7 +307,7 @@ impl ScalarType {
"bool" => BOOL,
"string" => STRING,
"enum" => Enum,
"ChannelStatus" => ChannelStatus,
"channelstatus" => ChannelStatus,
_ => {
return Err(Error::with_msg_no_trace(format!(
"from_bsread_str can not understand bsread {:?}",
@@ -469,6 +469,10 @@ impl ScalarType {
}
}
pub fn to_scylla_table_name_id(&self) -> &'static str {
self.to_variant_str()
}
pub fn to_scylla_i32(&self) -> i32 {
self.index() as i32
}
@@ -2942,6 +2946,7 @@ pub struct ProxyConfig {
pub port: u16,
pub backends: Vec<ProxyBackend>,
pub status_subs: Vec<StatusSub>,
pub announce_backends: Option<Vec<String>>,
}
pub trait HasBackend {