Documentation
¶
Index ¶
Constants ¶
View Source
const SourceType = "smtp"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// SMTP server host
Host string `yaml:"host" default:"localhost"`
// SMTP server port
Port int `yaml:"port" default:"587"`
// Username for SMTP authentication
Username string `yaml:"username"`
// Password for SMTP authentication
Password string `yaml:"password"`
// From email address
From string `yaml:"from"`
// To email addresses
To []string `yaml:"to"`
// Whether to use TLS
TLS bool `yaml:"tls" default:"false"`
// Whether to skip TLS certificate verification
InsecureSkipVerify bool `yaml:"insecureSkipVerify" default:"false"`
}
Config represents the configuration for the email source
func (*Config) SetDefaults ¶
SetDefaults sets the default values for the config
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func GetMetricsInstance ¶
func (Metrics) IncMessagesPublished ¶
Click to show internal directories.
Click to hide internal directories.