mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2025-03-12 08:01:42 +01:00
43 lines
666 B
Rust
43 lines
666 B
Rust
use capnp::capability::Promise;
|
|
use capnp::Error;
|
|
|
|
use api::bootstrap::{
|
|
Server,
|
|
MechanismsParams,
|
|
MechanismsResults,
|
|
CreateSessionParams,
|
|
CreateSessionResults
|
|
};
|
|
|
|
mod tls;
|
|
mod authentication;
|
|
mod session;
|
|
mod users;
|
|
mod resources;
|
|
|
|
#[derive(Debug)]
|
|
/// Cap'n Proto API Handler
|
|
struct ApiSystem {
|
|
|
|
}
|
|
|
|
|
|
impl Server for ApiSystem {
|
|
fn mechanisms(
|
|
&mut self,
|
|
_: MechanismsParams,
|
|
_: MechanismsResults
|
|
) -> Promise<(), Error>
|
|
{
|
|
todo!()
|
|
}
|
|
|
|
fn create_session(
|
|
&mut self,
|
|
_: CreateSessionParams,
|
|
_: CreateSessionResults
|
|
) -> Promise<(), Error>
|
|
{
|
|
todo!()
|
|
}
|
|
} |