first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user