Documentation ¶
Index ¶
- Variables
- func ClearUserCache() (dc int64, err error)
- func CreateIndex(flag bool) error
- func CreateTables(drop bool) error
- func DownloadPics(ctx context.Context, base string, srcs []string, w int) error
- func Extract(url string) ([]string, error)
- func Extract2(url string) (next string, links []string, pics []string, err error)
- func NewCaptchaStore(expiration time.Duration) *captchaStore
- func NewEsCli()
- func NewGormDB()
- func NewRedisCli()
- func NovelScrapy(p bool, bookid string, skip int) error
- type Atom
- type BaseModel
- type Compound
- type CompoundElem
- type DocVerify
- type Doct
- type KGroup
- type KeyDefine
- type MeizituCrawl
- type Molecule
- type User
- type UserVo
Constants ¶
This section is empty.
Variables ¶
View Source
var MyTableNameHandler = func(db *gorm.DB, defaultTableName string) string {
return "pg_" + defaultTableName
}
Functions ¶
func ClearUserCache ¶
ClearUserCache clear all tokens from redis
func CreateIndex ¶
func CreateTables ¶
func NewCaptchaStore ¶
Types ¶
type Atom ¶
type Atom struct { BaseModel Key string `json:"key" gorm:"type:varchar(100);unique_index;not null"` Name string `json:"name"` NameEn string `json:"name_en"` EnAbbr string `json:"en_abbr"` Level int `json:"level" gorm:"default:1"` Keyword string `json:"keyword"` Remark string `json:"remark" gorm:"type:varchar(300)"` Options string `json:"options" gorm:"type:varchar(500)"` Etype string `json:"etype" gorm:"type:varchar(50)"` Eanalyzer string `json:"eanalyzer"` }
type CompoundElem ¶
type MeizituCrawl ¶
func NewMeizituCrawl ¶
func NewMeizituCrawl(url string, limit int) *MeizituCrawl
func (*MeizituCrawl) Crawl ¶
func (mc *MeizituCrawl) Crawl()
type User ¶
type User struct { Id string `json:"id" dt:"keyword"` Name string `json:"name" dt:"keyword"` Password string `json:"password" dt:"keyword"` TelNumber string `json:"telNumberm,omitempty" dt:"keyword"` Address string `json:"address,omitempty" dt:"text"` Birthday *time.Time `json:"birthday,omitempty" dt:"date"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.