daemon: implements post office
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user