Private
Public Access
1
0

daemon: implements post office

This commit is contained in:
2025-05-02 14:22:43 -07:00
parent 07b55f8615
commit 2519bc05ad
13 changed files with 234 additions and 48 deletions

View File

@@ -15,10 +15,11 @@ pub mod event_socket;
pub use event_socket::EventSocket;
use self::http_client::Credentials;
use std::fmt::Debug;
#[async_trait]
pub trait APIInterface {
type Error;
type Error: Debug;
// (GET) /version
async fn get_version(&mut self) -> Result<String, Self::Error>;
@@ -38,7 +39,7 @@ pub trait APIInterface {
// (POST) /sendMessage
async fn send_message(
&mut self,
outgoing_message: OutgoingMessage,
outgoing_message: &OutgoingMessage,
) -> Result<Message, Self::Error>;
// (POST) /authenticate