Documentation ¶
Index ¶
- type Dao
- func (d *Dao) Close()
- func (d *Dao) FetchBuvidView(c context.Context) (result []string, err error)
- func (d *Dao) FetchMidView(c context.Context) (result []string, err error)
- func (d *Dao) FetchNewincomeVideo() (res []int64, err error)
- func (d *Dao) FetchVideoInfo(c context.Context, offset, size int) (result []*model.Video, err error)
- func (d *Dao) FetchVideoQuality(c context.Context, svid uint64) (result *quality.VideoQuality, err error)
- func (d *Dao) FetchVideoTag(c context.Context, tid int32) (result *proto.Tag, err error)
- func (d *Dao) FetchVideoTagAll(c context.Context) (result []*proto.Tag, err error)
- func (d *Dao) FetchVideoTextTag(c context.Context, svid int64) (result []string, err error)
- func (d *Dao) InsertBloomFilter(c context.Context, key string, svidList []uint64) error
- func (d *Dao) Ping(ctx context.Context) error
- func (d *Dao) SetBloomFilter(c context.Context, key string, b *[]byte) error
- func (d *Dao) SetInvertedIndex(c context.Context, key string, svids []int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao
func (*Dao) FetchBuvidView ¶
FetchBuvidView .
func (*Dao) FetchMidView ¶
FetchMidView .
func (*Dao) FetchNewincomeVideo ¶
FetchNewincomeVideo .
func (*Dao) FetchVideoInfo ¶
func (d *Dao) FetchVideoInfo(c context.Context, offset, size int) (result []*model.Video, err error)
FetchVideoInfo .
func (*Dao) FetchVideoQuality ¶
func (d *Dao) FetchVideoQuality(c context.Context, svid uint64) (result *quality.VideoQuality, err error)
FetchVideoQuality .
func (*Dao) FetchVideoTag ¶
FetchVideoTag .
func (*Dao) FetchVideoTagAll ¶
FetchVideoTagAll .
func (*Dao) FetchVideoTextTag ¶
FetchVideoTextTag .
func (*Dao) InsertBloomFilter ¶
InsertBloomFilter 构建BF,插入redis
func (*Dao) SetBloomFilter ¶
SetBloomFilter .
Click to show internal directories.
Click to hide internal directories.