mqtt_relay/config/config.go
2024-08-22 02:58:23 +08:00

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"`
}