first commit
This commit is contained in:
24
internal/config/struct.go
Normal file
24
internal/config/struct.go
Normal file
@ -0,0 +1,24 @@
|
||||
package config
|
||||
|
||||
type Auth struct {
|
||||
Login string `yaml:"login"`
|
||||
Password string `yaml:"password"`
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
Name string `yaml:"name"`
|
||||
|
||||
Host string `yaml:"host"`
|
||||
Port uint16 `yaml:"port"`
|
||||
|
||||
From string `yaml:"from"`
|
||||
To string `yaml:"to"`
|
||||
|
||||
UseTLS bool `yaml:"use-tls"`
|
||||
|
||||
Auth *Auth `yaml:"auth"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Servers []Server
|
||||
}
|
||||
Reference in New Issue
Block a user