healthchecks.io integration

This commit is contained in:
Aine
2022-11-25 16:23:26 +02:00
parent 351f0fca77
commit 4a76a3269d
33 changed files with 1522 additions and 11 deletions

View File

@@ -1,5 +1,7 @@
package config
import "time"
// Config of Postmoogle
type Config struct {
// Homeserver url
@@ -35,8 +37,8 @@ type Config struct {
// TLS config
TLS TLS
// Sentry config
Sentry Sentry
// Monitoring config
Monitoring Monitoring
}
// DB config
@@ -55,9 +57,12 @@ type TLS struct {
Required bool
}
// Sentry config
type Sentry struct {
DSN string
// Monitoring config
type Monitoring struct {
SentryDSN string
SentrySampleRate int
HealchecksUUID string
HealthechsDuration time.Duration
}
// Mailboxes config