20 lines
521 B
Go
20 lines
521 B
Go
package config
|
|
|
|
// Config represents the configuration structure
|
|
type Config struct {
|
|
Server struct {
|
|
Host string `yaml:"host"`
|
|
Port int `yaml:"port"`
|
|
EnableTLS bool `yaml:"enable_tls"`
|
|
CertFile string `yaml:"cert_file"`
|
|
KeyFile string `yaml:"key_file"`
|
|
} `yaml:"server"`
|
|
Relay struct {
|
|
Broker string `yaml:"broker"`
|
|
EnableTLS bool `yaml:"enable_tls"`
|
|
CertFile string `yaml:"cert_file"`
|
|
KeyFile string `yaml:"key_file"`
|
|
} `yaml:"relay"`
|
|
LogFile string `yaml:"log_file"`
|
|
}
|