Documentation
¶
Index ¶
- Constants
- Variables
- func Register(handler Handler)
- type App
- type Handler
- type HandlerConfig
- type MaoDou
- func (this *MaoDou) AddJob(job string)
- func (this *MaoDou) Cawl(paras ...interface{}) (*Response, error)
- func (this *MaoDou) Config() *HandlerConfig
- func (this *MaoDou) Detail(resp *Response) (*models.Result, error)
- func (this *MaoDou) Index(resp *Response, jobs chan string) error
- func (this *MaoDou) Init(link string)
- func (this *MaoDou) Result(result *models.Result) error
- func (this *MaoDou) SetD(d bool)
- func (this *MaoDou) SetDao(dao_name, dsn string)
- func (this *MaoDou) SetJobLen(l int)
- func (this *MaoDou) SetProxy(proxy_name, proxy_dsn string)
- func (this *MaoDou) SetRate(times ...time.Duration)
- func (this *MaoDou) Start(link string) (*Response, error)
- type Request
- type Response
Constants ¶
View Source
const ( CawlNoProxy = 0 CawlProxy = 1 CawlRetry = 2 )
Variables ¶
View Source
var CYEAM_LOG = `` /* 403-byte string literal not displayed */
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
var APP *App
func NewController ¶
type HandlerConfig ¶
type HandlerConfig struct {
// contains filtered or unexported fields
}
type MaoDou ¶
type MaoDou struct { Dao dao.DaoContainer Debug bool // contains filtered or unexported fields }
func (*MaoDou) Config ¶
func (this *MaoDou) Config() *HandlerConfig
type Request ¶
type Request struct { goreq.Request Interval time.Duration // contains filtered or unexported fields }
func NewRequest ¶
func (*Request) DumpRequest ¶
Directories
¶
Path | Synopsis |
---|---|
Package analytics https://stackoverflow.com/questions/12837748/analytics-google-api-error-403-user-does-not-have-any-google-analytics-account
|
Package analytics https://stackoverflow.com/questions/12837748/analytics-google-api-error-403-user-does-not-have-any-google-analytics-account |
Package dao
|
Package dao |
Package demo
|
Package demo |
Click to show internal directories.
Click to hide internal directories.