Documentation ¶
Index ¶
- Variables
- 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]*>`)
Functions ¶
This section is empty.
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.NgingCollectorPage RuleList []*dbschema.NgingCollectorRule // contains filtered or unexported fields }
Rule 页面规则
Click to show internal directories.
Click to hide internal directories.