models

package
v0.0.0-...-e0a550e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONItem

type JSONItem struct {
	KeyValuePair
	TypeStr string
}

type JSONParam

type JSONParam struct {
	Type  int
	JSONs []JSONItem
}

type KeyValuePair

type KeyValuePair struct {
	Key   string
	Value string
}

type PageItemModel

type PageItemModel struct {
	Route   string
	MainKey string
	Text    *PageTextItem
	Json    *JSONParam
}

type PageTextItem

type PageTextItem struct {
	Regex []*RegexItem
	Xpath []*PrefixXpathItem
}

type PrefixXpathItem

type PrefixXpathItem struct {
	Prefix string
	Arr    []*XpathItem
}

type ProxyModel

type ProxyModel struct {
	Ip   string
	Port string
}

type RegexItem

type RegexItem struct {
	RegexStr string
	Match    []KeyValuePair
}

type RequestHeaderItem

type RequestHeaderItem struct {
	KeyValuePair
}

type RequestHeaderModel

type RequestHeaderModel struct {
	RequestHeaders []*RequestHeaderItem
}

func NewRequestHeaderModel

func NewRequestHeaderModel(headerStr string) *RequestHeaderModel

type RequestParam

type RequestParam struct {
	KeyValuePair
}

type SchedulerItemModel

type SchedulerItemModel struct {
	Route string
	Text  *SchedulerTextItem
	Json  *JSONParam
}

type SchedulerTextItem

type SchedulerTextItem struct {
	Regex []*RegexItem
	Xpath []*XpathItem
}

type TaskInfoModel

type TaskInfoModel struct {
	TargetUrl      string
	ThreadNum      int
	RetryMaxCount  int
	SleepTime      int
	CloseTime      int
	RequestTimeout int
	Method         string
	RequestHeaders string
	Proxy          []ProxyModel
	Schedulers     []SchedulerItemModel
	Pages          []PageItemModel
}

func NewTaskInfoModel

func NewTaskInfoModel(config *simplejson.Json) *TaskInfoModel

type XpathItem

type XpathItem struct {
	DomStr  string
	Key     string
	Type    int
	AttrKey string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL