Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentEngine ¶
func (*ConcurrentEngine) Run ¶
func (e *ConcurrentEngine) Run(seeds ...Request)
type ParseResult ¶
type ParseResult struct { Requests []Request Items []interface{} }
type ReadyNotifier ¶
type ReadyNotifier interface {
WorkerReady(chan Request)
}
type Request ¶
type Request struct { Url string ParserFunc func([]byte) ParseResult }
type Scheduler ¶
type Scheduler interface { Submit(Request) ConfigureMasterWorkerChan(chan Request) WorkerReady(chan Request) Run() }
队列版本,缺乏通用性
type SimpleEngine ¶
type SimpleEngine struct{}
func (SimpleEngine) Run ¶
func (e SimpleEngine) Run(seeds ...Request)
Click to show internal directories.
Click to hide internal directories.