archive

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 archive dao.

func New

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

New init api url

func (*Dao) Archive

func (d *Dao) Archive(c context.Context, aid int64) (a *api.Arc, err error)

Archive get archive info.

func (*Dao) Archives

func (d *Dao) Archives(c context.Context, aids []int64) (a map[int64]*api.Arc, err error)

Archives get archive list.

func (*Dao) ArticleMetas

func (d *Dao) ArticleMetas(c context.Context, aids []int64) (res map[int64]*model.Meta, err error)

ArticleMetas batch get articles by aids.

func (*Dao) Close

func (d *Dao) Close() (err error)

Close fn

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

Ping fn

func (*Dao) Stats

func (d *Dao) Stats(c context.Context, aids []int64) (a map[int64]*api.Stat, err error)

Stats get archives stat.

func (*Dao) UpCount

func (d *Dao) UpCount(c context.Context, mid int64) (count int, err error)

UpCount get archives count.

func (*Dao) View

func (d *Dao) View(c context.Context, mid, aid int64) (av *model.ArcVideo, err error)

View get archive

Jump to

Keyboard shortcuts

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