43 lines
679 B
Go
43 lines
679 B
Go
package structures
|
|
|
|
type Response struct {
|
|
Url string
|
|
Content []byte
|
|
Err error
|
|
}
|
|
|
|
type Request struct {
|
|
Url string
|
|
Response chan Response
|
|
}
|
|
|
|
type WorkerDescription struct {
|
|
Ip string
|
|
Req chan Request
|
|
}
|
|
|
|
type ProxyServer struct {
|
|
Type string
|
|
Address string
|
|
}
|
|
|
|
type WebServerConfig struct {
|
|
Address string
|
|
APIKey string
|
|
Timeout int // In seconds
|
|
}
|
|
|
|
type WorkerServerConfig struct {
|
|
Address string
|
|
WorkersCount int
|
|
RequestMessagePrefix string
|
|
}
|
|
|
|
type ClientConfig struct {
|
|
ConnectionsCount int
|
|
ConnectionTimeout int // In seconds
|
|
WorkerServerAddress string
|
|
RequestMessagePrefix string
|
|
ProxyListBaseURL string
|
|
}
|