live

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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 is live dao

func New

func New(c *conf.Config) (d *Dao)

New live dao.

func (*Dao) DynamicHot

func (d *Dao) DynamicHot(c context.Context) (list []*clive.DynamicHot, err error)

DynamicHot get dynamic hot all

func (*Dao) Feed

func (d *Dao) Feed(c context.Context, mid int64, ak, ip string, now time.Time) (r *live.Feed, err error)

Live feed

func (*Dao) Recommend

func (d *Dao) Recommend(now time.Time) (r *live.Recommend, err error)

Recommend get live Recommend data.

func (*Dao) TopicHots

func (d *Dao) TopicHots(c context.Context) (topics []*clive.TopicHot, err error)

TopicHots get live topic hots

Jump to

Keyboard shortcuts

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