diff --git a/internal/actions/email.go b/internal/actions/email.go new file mode 100644 index 0000000..0f3a37f --- /dev/null +++ b/internal/actions/email.go @@ -0,0 +1 @@ +package actions diff --git a/internal/actions/scripts.go b/internal/actions/scripts.go new file mode 100644 index 0000000..0f3a37f --- /dev/null +++ b/internal/actions/scripts.go @@ -0,0 +1 @@ +package actions diff --git a/internal/config/types.go b/internal/config/types.go index d3bc943..f5031cd 100644 --- a/internal/config/types.go +++ b/internal/config/types.go @@ -37,3 +37,22 @@ type Metrics struct { Enabled bool `toml:"enabled"` Port int `toml:"port"` } + +// Actions +type Action struct { + Type string `toml:"type"` + Enabled bool `toml:"enabled"` + URL string `toml:"url"` + Headers map[string]string `toml:"headers"` + Body string `toml:"body"` + Email string `toml:"email"` + EmailSender string `toml:"email_sender"` + EmailSubject string `toml:"email_subject"` + SMTPHost string `toml:"smtp_host"` + SMTPPort int `toml:"smtp_port"` + SMTPUser string `toml:"smtp_user"` + SMTPPassword string `toml:"smtp_password"` + SMTPTLS bool `toml:"smtp_tls"` + Interpretator string `toml:"interpretator"` + Script string `toml:"script"` +}