1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//-
use derive_more::Constructor;
use git_next_actor_macros::message;
use git_next_config::server::{ServerConfig, ServerStorage};
use std::net::SocketAddr;

// receive server config
message!(ReceiveServerConfig: ServerConfig: "Notification of newly loaded server configuration.

This message will prompt the `git-next` server to stop and restart all repo-actors.

Contains the new server configuration.");

// receive valid server config
#[derive(Clone, Debug, PartialEq, Eq, Constructor)]
pub struct ValidServerConfig {
    pub server_config: ServerConfig,
    pub socket_address: SocketAddr,
    pub server_storage: ServerStorage,
}
message!(ReceiveValidServerConfig: ValidServerConfig: "Notification of validated server configuration.");

message!(Shutdown: "Notification to shutdown the server actor");