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: 6 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) (d *Dao)

New new dao.

func (*Dao) AddAsoAccount

func (d *Dao) AddAsoAccount(c context.Context, a *model.EncryptAccount) (affected int64, err error)

AddAsoAccount add aso account.

func (*Dao) AsoAccounts

func (d *Dao) AsoAccounts(c context.Context, start, end int64) (res []*model.OriginAccount, err error)

AsoAccounts get tokens by mid.

func (*Dao) Close

func (d *Dao) Close() (err error)

Close close connections of mc, cloudDB.

func (*Dao) DelAsoAccount

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

DelAsoAccount delete aso account.

func (*Dao) Ping

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

Ping check dao ok.

func (*Dao) UpdateAsoAccount

func (d *Dao) UpdateAsoAccount(c context.Context, a *model.EncryptAccount) (affected int64, err error)

UpdateAsoAccount update aso account.

Jump to

Keyboard shortcuts

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