feat: support sending messages to the user
All checks were successful
Rust / build (push) Successful in 2m51s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful

This commit is contained in:
Paul Campbell 2024-07-19 07:53:46 +01:00
parent c86d890c2c
commit e9877ca9fa
3 changed files with 15 additions and 0 deletions

View file

@ -1 +1,2 @@
mod notify_user;
mod shutdown_webhook; mod shutdown_webhook;

View 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
}
}

View file

@ -2,3 +2,5 @@
use git_next_actor_macros::message; use git_next_actor_macros::message;
message!(ShutdownWebhook: "Request to shutdown the Webhook actor"); message!(ShutdownWebhook: "Request to shutdown the Webhook actor");
message!(NotifyUser: String: "Request to send the message payload to the notification webhook");