package
Version:
v0.0.0-...-dd85d06
Opens a new window with list of versions in this module.
Published: Jul 4, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type DB struct {
Host string `env:"DB_HOST"`
Port string `env:"DB_PORT"`
User string `env:"DB_USER"`
Password string `env:"DB_PASSWORD"`
DBName string `env:"DB_NAME"`
SSLMode string `env:"DB_SSL_MODE"`
}
type EmailerConfig struct {
Host string `env:"SMTP_HOST"`
Port int `env:"SMTP_PORT"`
Username string `env:"SMTP_USERNAME"`
Password string `env:"SMTP_PASSWORD"`
Sender string `env:"EMAIL_SENDER"`
}
type Processor struct {
FetchInterval time.Duration `env:"PROCESSOR_FETCH_INTERVAL"`
BatchSize int `env:"PROCESSOR_BATCH_SIZE"`
}
type SMSConfig struct {
SID string `env:"SMS_SID"`
Secret string `env:"SMS_SECRET"`
Sender string `env:"SMS_SENDER"`
}
type Server struct {
Host string `env:"SERVER_HOST"`
Port int `env:"SERVER_PORT"`
ShutdownTimeout int `env:"SERVER_SHUTDOWN_TIMEOUT"`
}
type SlackerConfig struct {
Webhook string `env:"SLACK_WEBHOOK"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.