catcher

package
v0.0.0-...-721bd20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catcher

type Catcher interface {
	Catch() ([]Content, error)
}

Catcher 负责抓取

type Content

type Content struct {
	// 标题
	Title string `json:"title"`
	// 时间
	Time time.Time `json:"time"`
	// 简介(可选)
	Description string `json:"description"`
	// 封面图(可选)
	Cover string `json:"cover"`
	// 链接
	Link string `json:"link"  gorm:"index:idx"`
	// 发布人
	Author string `json:"author"  gorm:"index:idx"`
	// 来源
	Source string `json:"source"  gorm:"index:idx"`
	// 分类(可选,默认归类为"未分类")
	Category string `json:"category"`
}

Directories

Path Synopsis
plugins

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL