WIP: feat: support sending messages to a notification webhook
This commit is contained in:
parent
a47ba6c289
commit
3644ce33b3
3 changed files with 15 additions and 0 deletions
|
@ -1 +1,2 @@
|
|||
mod notify_user;
|
||||
mod shutdown_webhook;
|
||||
|
|
12
crates/webhook-actor/src/handlers/notify_user.rs
Normal file
12
crates/webhook-actor/src/handlers/notify_user.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
//
|
||||
use actix::prelude::*;
|
||||
|
||||
use crate::{messages::NotifyUser, WebhookActor};
|
||||
|
||||
impl Handler<NotifyUser> for WebhookActor {
|
||||
type Result = ();
|
||||
|
||||
fn handle(&mut self, _msg: NotifyUser, _ctx: &mut Self::Context) -> Self::Result {
|
||||
// TODO: (#95) should notify user
|
||||
}
|
||||
}
|
|
@ -2,3 +2,5 @@
|
|||
use git_next_actor_macros::message;
|
||||
|
||||
message!(ShutdownWebhook: "Request to shutdown the Webhook actor");
|
||||
|
||||
message!(NotifyUser: String: "Request to send the message payload to the notification webhook");
|
||||
|
|
Loading…
Reference in a new issue