Handle config as struct with values from ENV file
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user