dao

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: 8 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 dao.

func New

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

New new a dao.

func (*Dao) AddArchiveCache

func (d *Dao) AddArchiveCache(c context.Context, aid int64, arc *archive.Info) (err error)

AddArchiveCache add archive cache.

func (*Dao) PingMc

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

PingMc is

func (*Dao) PingRedis

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

PingRedis is

func (*Dao) PopList

func (d *Dao) PopList(c context.Context) (bs []byte, err error)

PopList lpop item from redis

func (*Dao) PushList

func (d *Dao) PushList(c context.Context, a interface{}) (err error)

PushList rpush item to redis

Jump to

Keyboard shortcuts

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