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 // interface{}是任何类型 Items []interface{} }
func NilParser ¶
func NilParser([]byte) ParseResult
type Request ¶
type Request struct { Url string ParserFunc func([]byte) ParseResult }
type SimpleEngine ¶
type SimpleEngine struct { }
func (SimpleEngine) Run ¶
func (e SimpleEngine) Run(seeds ...Request)
Click to show internal directories.
Click to hide internal directories.