Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveProfile ¶
Types ¶
type CheckResult ¶
type CheckResult struct {
Check string `json:"check"`
Category Category `json:"category"`
Severity Severity `json:"severity"`
Status Status `json:"status"`
Message string `json:"message"`
Details map[string]interface{} `json:"details"`
Duration int64 `json:"duration_ms"`
Error string `json:"error,omitempty"`
Timestamp time.Time `json:"timestamp"`
}
type OutputMode ¶
type OutputMode string
const ( OutputQuiet OutputMode = "quiet" OutputSummary OutputMode = "summary" OutputVerbose OutputMode = "verbose" )
type Profile ¶
type Profile struct {
Name string `yaml:"name"`
SMTPHost string `yaml:"smtp_host"`
SMTPPort int `yaml:"smtp_port"`
IMAPHost string `yaml:"imap_host"`
IMAPPort int `yaml:"imap_port"`
Domains []string `yaml:"domains"`
TestUser string `yaml:"test_user"`
PasswordEnv string `yaml:"password_env"`
Options ProfileOptions `yaml:"options"`
}
func LoadProfile ¶
type ProfileOptions ¶
type ServerConfig ¶
type ServerConfig struct {
SMTPHost string
SMTPPort int
IMAPHost string
IMAPPort int
Domains []string
TestUser string
TestPass string
TLS bool
StartTLS bool
Timeout time.Duration
ConfigPath string
PasswordEnv string
DryRun bool
AutoCleanup bool
}
func (*ServerConfig) IMAPAddress ¶
func (cfg *ServerConfig) IMAPAddress() string
func (*ServerConfig) SMTPAddress ¶
func (cfg *ServerConfig) SMTPAddress() string
func (*ServerConfig) TLSConfig ¶
func (cfg *ServerConfig) TLSConfig() *tls.Config
Click to show internal directories.
Click to hide internal directories.