Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Traffic ¶
type Traffic struct {
// contains filtered or unexported fields
}
Traffic goes around inside a circular Site pipe network, e. g. a crawling Crawler.
func (*Traffic) Done ¶
func (t *Traffic) Done() (done <-chan struct{})
Done returns a channel which will be signalled and closed when traffic has subsided and nothing is left to be processed and consequently all goroutines have terminated.
Note: Done() here is a convenience method. It is well known from the "context" package. Just: no need to use it as `Processor` returns same.
func (*Traffic) Processor ¶
Processor builds the site traffic processing network; it is cirular if crawl uses Feed to provide feedback.
returned is a channel which will be signalled and closed when traffic has subsided and nothing is left to be processed and consequently all goroutines have terminated - as is from `Done()`.
Click to show internal directories.
Click to hide internal directories.