first commit

This commit is contained in:
2024-08-22 02:58:23 +08:00
commit 74712b6d5b
19 changed files with 477 additions and 0 deletions
+19
View File
@@ -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"`
}