pendant

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: 9 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 struct info of Dao.

func New

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

New new a Dao and return.

func (*Dao) Close

func (d *Dao) Close()

Close close connections of mc, redis, db.

func (*Dao) DelEquipCache

func (d *Dao) DelEquipCache(c context.Context, mid int64) (err error)

DelEquipCache set pendant info cache

func (*Dao) DelPKGCache

func (d *Dao) DelPKGCache(c context.Context, mid int64) (err error)

DelPKGCache del package cache

func (*Dao) ExpireEquipPendant

func (d *Dao) ExpireEquipPendant(c context.Context, expires int64) (res []int64, err error)

ExpireEquipPendant get expire equip pendant

func (*Dao) PendantEquipGidPid

func (d *Dao) PendantEquipGidPid(c context.Context, pid int64) (gid int64, err error)

PendantEquipGidPid get gid of its equip pendant by pid.

func (*Dao) PendantEquipMID

func (d *Dao) PendantEquipMID(c context.Context, mid int64) (pe *model.PendantEquip, err error)

PendantEquipMID get user equip pendant by mid.

func (*Dao) Ping

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

Ping ping health.

func (*Dao) UpEquipExpires

func (d *Dao) UpEquipExpires(c context.Context, mid, expires int64) (affected int64, err error)

UpEquipExpires update equip expires by mid

func (*Dao) UpEquipMID

func (d *Dao) UpEquipMID(c context.Context, mid int64) (affected int64, err error)

UpEquipMID update equip empty by mid

Jump to

Keyboard shortcuts

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