build out auth proxy core logic

This commit is contained in:
Conrad Ludgate
2024-09-12 17:23:56 +01:00
parent 91e8b7d22b
commit ce200a53e8
7 changed files with 193 additions and 22 deletions

View File

@@ -377,10 +377,10 @@ async fn prepare_client_connection<P>(
}
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub(crate) struct NeonOptions(Vec<(SmolStr, SmolStr)>);
pub struct NeonOptions(Vec<(SmolStr, SmolStr)>);
impl NeonOptions {
pub(crate) fn parse_params(params: &StartupMessageParams) -> Self {
pub fn parse_params(params: &StartupMessageParams) -> Self {
params
.options_raw()
.map(Self::parse_from_iter)