Documentation ¶
Index ¶
- func GetCategoryByUrl(categories []*model_public.Categories, url string) <-chan *model_public.Categories
- func LoadKeyword(fname string) ([]string, error)
- func SaveCategoryCsv(base BaseConfig, categories []*CategoryCsv) error
- func SaveKeyword(fname string, keywords []string) error
- type BaseConfig
- type CategoryCsv
- type StatusGrabCategoryCsv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCategoryByUrl ¶
func GetCategoryByUrl(categories []*model_public.Categories, url string) <-chan *model_public.Categories
func LoadKeyword ¶
func SaveCategoryCsv ¶
func SaveCategoryCsv(base BaseConfig, categories []*CategoryCsv) error
func SaveKeyword ¶
Types ¶
type BaseConfig ¶ added in v1.1.12
type CategoryCsv ¶
type CategoryCsv struct { Type string `csv:"type" json:"type"` ParentName string `csv:"parent_name" json:"parent_name"` Name string `csv:"name" json:"name"` Url string `csv:"url" json:"url"` Status StatusGrabCategoryCsv `csv:"status" json:"status"` }
func LoadCategoryCsv ¶
func LoadCategoryCsv(base BaseConfig) ([]*CategoryCsv, error)
func NewCategoryCsv ¶ added in v1.1.12
func NewCategoryCsv(parent, category *model_public.Categories) *CategoryCsv
type StatusGrabCategoryCsv ¶
type StatusGrabCategoryCsv string
const ( STATUS_GRAB_CATEGORY_GRABBED StatusGrabCategoryCsv = "grabbed" STATUS_GRAB_CATEGORY_UNGRABBED StatusGrabCategoryCsv = "" )
Click to show internal directories.
Click to hide internal directories.