Files
old-kiviscraplib/structures/structures.go

45 lines
762 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
WaitingTimeout int // In seconds
WorkerServerAddress string
RequestMessagePrefix string
ProxyListBaseURL string
CustomSOCKS5ProxyList []ProxyServer
}