Documentation ¶
Index ¶
- Constants
- func Check() (bool, string)
- type DB
- func (d *DB) GetCZData(index, ty, timestamp string) ([]interface{}, error)
- func (d *DB) GetCZDocInfo(index, id string) (interface{}, error)
- func (d *DB) GetCZInfo() (vu.CZVideo, error)
- func (d *DB) GetCZRandomData(index string) ([]interface{}, error)
- func (d *DB) GetCZSimilVideo(index, keys string) ([]vu.CZVideo, error)
- func (d *DB) GetData() ([]vu.Video, error)
- func (d *DB) GetInfo() (vu.Video, error)
- func (d *DB) GetRandomData() ([]vu.Video, error)
- func (d *DB) GetVideoRangeList() ([]vu.Video, error)
Constants ¶
View Source
const ( // INDEX ES索引名称 INDEX = vu.INDEX CANON_ES_HOME = "CANON_ES_HOME" CANON_ES_USER = "CANON_ES_USER" CANON_ES_PASSWD = "CANON_ES_PASSWD" // EsEmpty ES_HOST变量为空 EsEmpty = "ES_HOST Can't Be Empty!" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct { // Ty 类型名称 Ty string // Chanid 频道ID Chanid []string TimeStamp string // ID 视频ID ID string // contains filtered or unexported fields }
func (*DB) GetCZDocInfo ¶
GetCZDocInfo 获取指定ID的新闻内容 index 索引名称
func (*DB) GetCZRandomData ¶
GetRandomData 返回随机视频数据 用于当前视频物料为空时
func (*DB) GetCZSimilVideo ¶
GetCZSimilVideo 获取相似视频数据 chuizi 和 idou 的数据结构不同,必须设置index
func (*DB) GetRandomData ¶
GetRandomData 返回随机视频数据 用于当前视频物料为空时
Click to show internal directories.
Click to hide internal directories.