Documentation ¶
Index ¶
- type Collector
- func (*Collector) Descriptor() ([]byte, []int)
- func (m *Collector) GetAllowURLRevisit() bool
- func (m *Collector) GetAllowedDomains() []string
- func (m *Collector) GetAsync() bool
- func (m *Collector) GetCacheDir() string
- func (m *Collector) GetCheckHead() bool
- func (m *Collector) GetDebugger() *any.Any
- func (m *Collector) GetDetectCharset() bool
- func (m *Collector) GetDisallowedURLFilters() *any.Any
- func (m *Collector) GetErrorCallback() *any.Any
- func (m *Collector) GetHTMLCallbacks() *any.Any
- func (m *Collector) GetHttpBackend() *any.Any
- func (m *Collector) GetID() int64
- func (m *Collector) GetIgnoreRobotsTxt() bool
- func (m *Collector) GetLock() *any.Any
- func (m *Collector) GetMaxBodySize() int32
- func (m *Collector) GetMaxDepth() int32
- func (m *Collector) GetParseHTTPErrorResponse() bool
- func (m *Collector) GetRedirectHandler() *any.Any
- func (m *Collector) GetRequestCallbacks() *any.Any
- func (m *Collector) GetRequestCount() uint32
- func (m *Collector) GetResponseCallbacks() *any.Any
- func (m *Collector) GetResponseCount() uint32
- func (m *Collector) GetRobotsMap() map[string]*any.Any
- func (m *Collector) GetScrapedCallback() *any.Any
- func (m *Collector) GetStore() *any.Any
- func (m *Collector) GetUA() string
- func (m *Collector) GetWg() *any.Any
- func (m *Collector) GetXMLCallbacks() *any.Any
- func (*Collector) ProtoMessage()
- func (m *Collector) Reset()
- func (m *Collector) String() string
- func (m *Collector) XXX_DiscardUnknown()
- func (m *Collector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Collector) XXX_Merge(src proto.Message)
- func (m *Collector) XXX_Size() int
- func (m *Collector) XXX_Unmarshal(b []byte) error
- type Context
- func (*Context) Descriptor() ([]byte, []int)
- func (m *Context) GetCtx() map[string]string
- func (*Context) ProtoMessage()
- func (m *Context) Reset()
- func (m *Context) String() string
- func (m *Context) XXX_DiscardUnknown()
- func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Context) XXX_Merge(src proto.Message)
- func (m *Context) XXX_Size() int
- func (m *Context) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetHeader() map[string]string
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) String() string
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetAbort() bool
- func (m *Request) GetBaseURL() *any.Any
- func (m *Request) GetBody() *any.Any
- func (m *Request) GetCollector() *any.Any
- func (m *Request) GetCtx() *Context
- func (m *Request) GetDepth() int32
- func (m *Request) GetHeader() *Header
- func (m *Request) GetID() int32
- func (m *Request) GetMethod() string
- func (m *Request) GetProxyURL() string
- func (m *Request) GetResponseCharacterEncoding() string
- func (m *Request) GetURL() *any.Any
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetBody() [][]byte
- func (m *Response) GetCtx() map[string]string
- func (m *Response) GetHeader() map[string]string
- func (m *Response) GetRequest() *any.Any
- func (m *Response) GetStatusCode() int32
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type SerializableRequest
- func (*SerializableRequest) Descriptor() ([]byte, []int)
- func (m *SerializableRequest) GetBody() [][]byte
- func (m *SerializableRequest) GetCtx() *Context
- func (m *SerializableRequest) GetHeaders() *Header
- func (m *SerializableRequest) GetID() int32
- func (m *SerializableRequest) GetMethod() string
- func (m *SerializableRequest) GetURL() string
- func (*SerializableRequest) ProtoMessage()
- func (m *SerializableRequest) Reset()
- func (m *SerializableRequest) String() string
- func (m *SerializableRequest) XXX_DiscardUnknown()
- func (m *SerializableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SerializableRequest) XXX_Merge(src proto.Message)
- func (m *SerializableRequest) XXX_Size() int
- func (m *SerializableRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` UA string `protobuf:"bytes,2,opt,name=UA,proto3" json:"UA,omitempty"` MaxDepth int32 `protobuf:"varint,14,opt,name=MaxDepth,proto3" json:"MaxDepth,omitempty"` AllowedDomains []string `protobuf:"bytes,17,rep,name=AllowedDomains,proto3" json:"AllowedDomains,omitempty"` DisallowedURLFilters *any.Any `protobuf:"bytes,18,opt,name=DisallowedURLFilters,proto3" json:"DisallowedURLFilters,omitempty"` AllowURLRevisit bool `protobuf:"varint,19,opt,name=AllowURLRevisit,proto3" json:"AllowURLRevisit,omitempty"` MaxBodySize int32 `protobuf:"varint,20,opt,name=MaxBodySize,proto3" json:"MaxBodySize,omitempty"` CacheDir string `protobuf:"bytes,21,opt,name=CacheDir,proto3" json:"CacheDir,omitempty"` IgnoreRobotsTxt bool `protobuf:"varint,22,opt,name=IgnoreRobotsTxt,proto3" json:"IgnoreRobotsTxt,omitempty"` Async bool `protobuf:"varint,3,opt,name=Async,proto3" json:"Async,omitempty"` ParseHTTPErrorResponse bool `protobuf:"varint,4,opt,name=ParseHTTPErrorResponse,proto3" json:"ParseHTTPErrorResponse,omitempty"` DetectCharset bool `protobuf:"varint,5,opt,name=DetectCharset,proto3" json:"DetectCharset,omitempty"` RedirectHandler *any.Any `protobuf:"bytes,6,opt,name=redirectHandler,proto3" json:"redirectHandler,omitempty"` CheckHead bool `protobuf:"varint,23,opt,name=CheckHead,proto3" json:"CheckHead,omitempty"` // Probably override with Storage Store *any.Any `protobuf:"bytes,7,opt,name=store,proto3" json:"store,omitempty"` // Probably override with Debug Debugger *any.Any `protobuf:"bytes,8,opt,name=debugger,proto3" json:"debugger,omitempty"` RobotsMap map[string]*any.Any `` /* 160-byte string literal not displayed */ HTMLCallbacks *any.Any `protobuf:"bytes,25,opt,name=HTMLCallbacks,proto3" json:"HTMLCallbacks,omitempty"` XMLCallbacks *any.Any `protobuf:"bytes,26,opt,name=XMLCallbacks,proto3" json:"XMLCallbacks,omitempty"` RequestCallbacks *any.Any `protobuf:"bytes,27,opt,name=RequestCallbacks,proto3" json:"RequestCallbacks,omitempty"` ResponseCallbacks *any.Any `protobuf:"bytes,28,opt,name=ResponseCallbacks,proto3" json:"ResponseCallbacks,omitempty"` ErrorCallback *any.Any `protobuf:"bytes,29,opt,name=ErrorCallback,proto3" json:"ErrorCallback,omitempty"` ScrapedCallback *any.Any `protobuf:"bytes,30,opt,name=ScrapedCallback,proto3" json:"ScrapedCallback,omitempty"` RequestCount uint32 `protobuf:"varint,9,opt,name=requestCount,proto3" json:"requestCount,omitempty"` ResponseCount uint32 `protobuf:"varint,10,opt,name=responseCount,proto3" json:"responseCount,omitempty"` HttpBackend *any.Any `protobuf:"bytes,11,opt,name=httpBackend,proto3" json:"httpBackend,omitempty"` Wg *any.Any `protobuf:"bytes,12,opt,name=wg,proto3" json:"wg,omitempty"` Lock *any.Any `protobuf:"bytes,13,opt,name=lock,proto3" json:"lock,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Collector) Descriptor ¶
func (*Collector) GetAllowURLRevisit ¶
func (*Collector) GetAllowedDomains ¶
func (*Collector) GetCacheDir ¶
func (*Collector) GetCheckHead ¶
func (*Collector) GetDebugger ¶
func (*Collector) GetDetectCharset ¶
func (*Collector) GetDisallowedURLFilters ¶
func (*Collector) GetErrorCallback ¶
func (*Collector) GetHTMLCallbacks ¶
func (*Collector) GetHttpBackend ¶
func (*Collector) GetIgnoreRobotsTxt ¶
func (*Collector) GetMaxBodySize ¶
func (*Collector) GetMaxDepth ¶
func (*Collector) GetParseHTTPErrorResponse ¶
func (*Collector) GetRedirectHandler ¶
func (*Collector) GetRequestCallbacks ¶
func (*Collector) GetRequestCount ¶
func (*Collector) GetResponseCallbacks ¶
func (*Collector) GetResponseCount ¶
func (*Collector) GetScrapedCallback ¶
func (*Collector) GetXMLCallbacks ¶
func (*Collector) ProtoMessage ¶
func (*Collector) ProtoMessage()
func (*Collector) XXX_DiscardUnknown ¶
func (m *Collector) XXX_DiscardUnknown()
func (*Collector) XXX_Marshal ¶
func (*Collector) XXX_Unmarshal ¶
type Context ¶
type Context struct { Ctx map[string]string `` /* 147-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Context) Descriptor ¶
func (*Context) ProtoMessage ¶
func (*Context) ProtoMessage()
func (*Context) XXX_DiscardUnknown ¶
func (m *Context) XXX_DiscardUnknown()
func (*Context) XXX_Marshal ¶
func (*Context) XXX_Unmarshal ¶
type Header ¶
type Header struct { Header map[string]string `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Header) Descriptor ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type Request ¶
type Request struct { URL *any.Any `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"` Header *Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"` Ctx *Context `protobuf:"bytes,3,opt,name=Ctx,proto3" json:"Ctx,omitempty"` Depth int32 `protobuf:"varint,4,opt,name=Depth,proto3" json:"Depth,omitempty"` Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"` Body *any.Any `protobuf:"bytes,6,opt,name=Body,proto3" json:"Body,omitempty"` ResponseCharacterEncoding string `protobuf:"bytes,7,opt,name=ResponseCharacterEncoding,proto3" json:"ResponseCharacterEncoding,omitempty"` ID int32 `protobuf:"varint,8,opt,name=ID,proto3" json:"ID,omitempty"` Collector *any.Any `protobuf:"bytes,9,opt,name=collector,proto3" json:"collector,omitempty"` Abort bool `protobuf:"varint,10,opt,name=abort,proto3" json:"abort,omitempty"` BaseURL *any.Any `protobuf:"bytes,11,opt,name=baseURL,proto3" json:"baseURL,omitempty"` ProxyURL string `protobuf:"bytes,12,opt,name=proxyURL,proto3" json:"proxyURL,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetBaseURL ¶
func (*Request) GetCollector ¶
func (*Request) GetProxyURL ¶
func (*Request) GetResponseCharacterEncoding ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { StatusCode int32 `protobuf:"varint,1,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"` Body [][]byte `protobuf:"bytes,2,rep,name=Body,proto3" json:"Body,omitempty"` Ctx map[string]string `` /* 147-byte string literal not displayed */ Request *any.Any `protobuf:"bytes,4,opt,name=Request,proto3" json:"Request,omitempty"` Header map[string]string `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetRequest ¶
func (*Response) GetStatusCode ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type SerializableRequest ¶
type SerializableRequest struct { URL string `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` Body [][]byte `protobuf:"bytes,3,rep,name=body,proto3" json:"body,omitempty"` ID int32 `protobuf:"varint,4,opt,name=ID,proto3" json:"ID,omitempty"` Ctx *Context `protobuf:"bytes,5,opt,name=ctx,proto3" json:"ctx,omitempty"` Headers *Header `protobuf:"bytes,6,opt,name=headers,proto3" json:"headers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SerializableRequest) Descriptor ¶
func (*SerializableRequest) Descriptor() ([]byte, []int)
func (*SerializableRequest) GetBody ¶
func (m *SerializableRequest) GetBody() [][]byte
func (*SerializableRequest) GetCtx ¶
func (m *SerializableRequest) GetCtx() *Context
func (*SerializableRequest) GetHeaders ¶
func (m *SerializableRequest) GetHeaders() *Header
func (*SerializableRequest) GetID ¶
func (m *SerializableRequest) GetID() int32
func (*SerializableRequest) GetMethod ¶
func (m *SerializableRequest) GetMethod() string
func (*SerializableRequest) GetURL ¶
func (m *SerializableRequest) GetURL() string
func (*SerializableRequest) ProtoMessage ¶
func (*SerializableRequest) ProtoMessage()
func (*SerializableRequest) Reset ¶
func (m *SerializableRequest) Reset()
func (*SerializableRequest) String ¶
func (m *SerializableRequest) String() string
func (*SerializableRequest) XXX_DiscardUnknown ¶
func (m *SerializableRequest) XXX_DiscardUnknown()
func (*SerializableRequest) XXX_Marshal ¶
func (m *SerializableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SerializableRequest) XXX_Merge ¶
func (m *SerializableRequest) XXX_Merge(src proto.Message)
func (*SerializableRequest) XXX_Size ¶
func (m *SerializableRequest) XXX_Size() int
func (*SerializableRequest) XXX_Unmarshal ¶
func (m *SerializableRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.