Handle config as struct with values from ENV file

This commit is contained in:
Bilal
2020-05-08 07:50:27 +02:00
parent 7e12d2819e
commit 87b18c7f7e
2 changed files with 67 additions and 0 deletions

View File

@@ -20,3 +20,11 @@ type ProxyServer struct {
Type string
Address string
}
type ClientConfig struct {
ConnectionsCount int
ConnectionTimeout int // In seconds
WorkerServerAddress string
RequestMessagePrefix string
ProxyListBaseURL string
}