package
Version:
v0.0.0-...-6bf298d
Opens a new window with list of versions in this module.
Published: Aug 10, 2022
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Compose struct {
Workers int `yaml:"workers"`
}
Compose holds number of workers composing smtp messages simultaneously
type Config struct {
Logger Logger `yaml:"logger"`
Kafka Kafka `yaml:"kafka"`
Mail Mail `yaml:"mail"`
Compose Compose `yaml:"compose"`
}
Config represents configuration for the application
Kafka contains parameters for publisher and consumer
type KafkaPub struct {
Server string `yaml:"server"`
Topic string `yaml:"topic"`
}
KafkaPub keeps values to send messages
type KafkaSub struct {
Server string `yaml:"server"`
Topic string `yaml:"topic"`
GroupID string `yaml:"group_id"`
}
KafkaSub keeps values to read messages
type Logger struct {
Level string `yaml:"level"`
}
Logger has values for the logger
type Mail struct {
Rate int `yaml:"rate"`
}
Mail is about to configure smtp messages sender
Source Files
¶
Click to show internal directories.
Click to hide internal directories.