Documentation ¶
Index ¶
- Variables
- func UniqueID() (string, error)
- type Fether
- type Recv
- func (c *Recv) Index() int
- func (c *Recv) IsEmpty() bool
- func (c *Recv) Parent() *Recv
- func (c *Recv) ParentResult() interface{}
- func (c *Recv) Parents(lasts ...int) *Recv
- func (c *Recv) ParentsResult(lasts ...int) interface{}
- func (c *Recv) Result(args ...int) interface{}
- func (c *Recv) Rule() *Rule
- func (c *Recv) Title() string
- func (c *Recv) URL() string
- func (_ *Recv) UniqueID() (string, error)
- type Result
- type Rule
- type Rules
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrForcedExit = errors.New(`Forced exit`)
View Source
var RegexpTitle = regexp.MustCompile(`(?i)<title[\s]*>([^<]+)</title[\s]*>`)
View Source
var SonyFlake *sonyflake.Sonyflake
Functions ¶
Types ¶
type Recv ¶
type Recv struct {
// contains filtered or unexported fields
}
func (*Recv) ParentResult ¶
func (c *Recv) ParentResult() interface{}
func (*Recv) ParentsResult ¶
type Result ¶
type Result struct { Title string URL string Result interface{} Type string //map/slice StartTime time.Time EndTime time.Time Elapsed time.Duration }
func (*Result) ElapsedString ¶
type Rule ¶
type Rule struct { *dbschema.CollectorPage RuleList []*dbschema.CollectorRule // contains filtered or unexported fields }
Rule 页面规则
Click to show internal directories.
Click to hide internal directories.