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 dao

func New

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

New init mysql db

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) DelBaseInfoCache

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

DelBaseInfoCache delete baseInfo cache.

func (*Dao) DelExpCache

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

DelExpCache set user exp cache.

func (*Dao) DelInfoCache

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

DelInfoCache delete account info from cache.

func (*Dao) DelMoralCache

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

DelMoralCache delete moral cache.

func (*Dao) DeleteRealnameCache

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

DeleteRealnameCache delete all realname cache

func (*Dao) DeleteUserBlockCache

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

DeleteUserBlockCache is.

func (*Dao) Ping

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

Ping dao ping

func (*Dao) SetExpCache

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

SetExpCache set user exp cache.

Jump to

Keyboard shortcuts

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