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: 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 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) CookieCache

func (d *Dao) CookieCache(c context.Context, session string) (res *model.Cookie, err error)

CookieCache get cookie info from cache

func (*Dao) CookieDeleted

func (d *Dao) CookieDeleted(c context.Context, start, count int64, suffix string) (res []*model.AuthCookie, err error)

CookieDeleted get cookie deleted

func (*Dao) DelCookieCache

func (d *Dao) DelCookieCache(c context.Context, session string) (err error)

DelCookieCache del cache.

func (*Dao) DelTokenCache

func (d *Dao) DelTokenCache(c context.Context, token string) (err error)

DelTokenCache del cache.

func (*Dao) TokenCache

func (d *Dao) TokenCache(c context.Context, sd string) (res *model.Token, err error)

TokenCache get token from cache

func (*Dao) TokenDeleted

func (d *Dao) TokenDeleted(c context.Context, start, count int64, suffix string) (res []*model.AuthToken, err error)

TokenDeleted get token deleted

Jump to

Keyboard shortcuts

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