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: 10 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 figure DAO

func New

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

New new a figure DAO

func (*Dao) AddFigureInfoCache

func (d *Dao) AddFigureInfoCache(c context.Context, f *model.Figure) (err error)

AddFigureInfoCache put figure to redis

func (*Dao) Close

func (d *Dao) Close()

Close close all dao.

func (*Dao) FigureBatchInfoCache

func (d *Dao) FigureBatchInfoCache(c context.Context, mids []int64) (fs []*model.Figure, missIndex []int, err error)

FigureBatchInfoCache ...

func (*Dao) FigureInfo

func (d *Dao) FigureInfo(c context.Context, mid int64) (res *model.Figure, err error)

FigureInfo get user figure info

func (*Dao) FigureInfoCache

func (d *Dao) FigureInfoCache(c context.Context, mid int64) (f *model.Figure, err error)

FigureInfoCache get user figure info from redis

func (*Dao) Ping

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

Ping check service health

func (*Dao) PingRedis

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

PingRedis check redis connection

func (*Dao) Ranks

func (d *Dao) Ranks(c context.Context) (ranks []*model.Rank, err error)

Ranks get figure score rank by ver

Jump to

Keyboard shortcuts

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