server: implement healthcheck

This commit is contained in:
Valentin Tolmer
2022-10-12 14:52:19 +02:00
committed by nitnelave
parent 01d4b6e1fc
commit 3aaf53442b
9 changed files with 183 additions and 13 deletions

View File

@@ -20,6 +20,9 @@ pub enum Command {
/// Run the LDAP and GraphQL server.
#[clap(name = "run")]
Run(RunOpts),
/// Test whether the LDAP and GraphQL server are responsive.
#[clap(name = "healthcheck")]
HealthCheck(RunOpts),
/// Send a test email.
#[clap(name = "send_test_email")]
SendTestEmail(TestEmailOpts),