Versions in this module Expand all Collapse all v1 v1.3.1 Mar 5, 2019 v1.3.0 Mar 14, 2018 Changes in this version + var LogicApp = New() + type App interface + GetAppConf func(k ...string) interface{} + GetOutputLib func() []string + GetSpiderByName func(string) *spider.Spider + GetSpiderLib func() []*spider.Spider + GetSpiderQueue func() crawler.SpiderQueue + GetTaskJar func() *distribute.TaskJar + Init func(mode int, port int, master string, w ...io.Writer) App + IsPause func() bool + IsRunning func() bool + IsStopped func() bool + LogGoOn func() App + LogRest func() App + PauseRecover func() + ReInit func(mode int, port int, master string, w ...io.Writer) App + Run func() + SetAppConf func(k string, v interface{}) App + SetLog func(io.Writer) App + SpiderPrepare func(original []*spider.Spider) App + Status func() int + Stop func() + func New() App + type Logic struct + 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) LogGoOn() App + func (self *Logic) LogRest() App + 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) SetLog(w io.Writer) App + func (self *Logic) SpiderPrepare(original []*spider.Spider) App + func (self *Logic) Status() int + func (self *Logic) Stop()