refactor: move DWN proxy server logic to separate file

This commit is contained in:
Prad Nukala
2024-09-25 20:27:00 -04:00
parent 0df3762f13
commit de05777261
8 changed files with 128 additions and 68 deletions
+2 -5
View File
@@ -3,11 +3,8 @@ package proxy
import "github.com/spf13/viper"
type Config struct {
Host string `mapstructure:"HOST"`
Port string `mapstructure:"PORT"`
SSL bool `mapstructure:"SSL"`
CertFile string `mapstructure:"CERT_FILE"`
KeyFile string `mapstructure:"KEY_FILE"`
Host string `mapstructure:"HOST"`
Port string `mapstructure:"PORT"`
}
func (c *Config) GetHostname() string {