Documentation
¶
Index ¶
- Variables
- type App
- type Logic
- func (self *Logic) CountNodes() int
- func (self *Logic) GetAppConf(k ...string) interface{}
- func (self *Logic) GetMode() int
- func (self *Logic) GetOutputLib() []string
- func (self *Logic) GetSpiderByName(name string) *spider.Spider
- func (self *Logic) GetSpiderLib() []*spider.Spider
- func (self *Logic) GetSpiderQueue() crawler.SpiderQueue
- func (self *Logic) GetTaskJar() *distribute.TaskJar
- func (self *Logic) Init(mode int, port int, master string, w ...io.Writer) App
- func (self *Logic) IsPause() bool
- func (self *Logic) IsRunning() bool
- func (self *Logic) IsStopped() bool
- func (self *Logic) PauseRecover()
- func (self *Logic) ReInit(mode int, port int, master string, w ...io.Writer) App
- func (self *Logic) Run()
- func (self *Logic) SetAppConf(k string, v interface{}) App
- func (self *Logic) SpiderPrepare(original []*spider.Spider) App
- func (self *Logic) Status() int
- func (self *Logic) Stop()
Constants ¶
This section is empty.
Variables ¶
View Source
var LogicApp = New()
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface { Init(mode int, port int, master string, w ...io.Writer) App ReInit(mode int, port int, master string, w ...io.Writer) App GetAppConf(k ...string) interface{} SetAppConf(k string, v interface{}) App SpiderPrepare(original []*spider.Spider) App Run() Stop() IsRunning() bool IsPause() bool IsStopped() bool PauseRecover() Status() int GetSpiderLib() []*spider.Spider GetSpiderByName(string) *spider.Spider GetSpiderQueue() crawler.SpiderQueue GetOutputLib() []string GetTaskJar() *distribute.TaskJar distribute.Distributer }
type Logic ¶
type Logic struct { *cache.AppConf *spider.SpiderSpecies crawler.SpiderQueue *distribute.TaskJar crawler.CrawlerPool teleport.Teleport sync.RWMutex // contains filtered or unexported fields }
func (*Logic) CountNodes ¶
func (*Logic) GetAppConf ¶
func (*Logic) GetOutputLib ¶
func (*Logic) GetSpiderLib ¶
func (*Logic) GetSpiderQueue ¶
func (self *Logic) GetSpiderQueue() crawler.SpiderQueue
func (*Logic) GetTaskJar ¶
func (self *Logic) GetTaskJar() *distribute.TaskJar
func (*Logic) PauseRecover ¶
func (self *Logic) PauseRecover()
func (*Logic) SetAppConf ¶
Click to show internal directories.
Click to hide internal directories.