Files
old-kiviscraplib/structures/structures.go

43 lines
679 B
Go
Raw Normal View History

2020-03-16 22:24:37 +01:00
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
}
2020-05-07 10:02:49 +02:00
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
}