feat: add struct for actions

This commit is contained in:
d3m0k1d
2026-02-23 23:18:26 +03:00
parent 66d460dbfc
commit 2747abfc04
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1 @@
package actions

View File

@@ -0,0 +1 @@
package actions

View File

@@ -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"`
}