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

New new dao.

func (*Dao) AddAsoAccountsCloud

func (d *Dao) AddAsoAccountsCloud(c context.Context, vs []*model.AsoAccount) (err error)

AddAsoAccountsCloud batch add aso account to cloud.

func (*Dao) AddIgnoreAsoAccount

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

AddIgnoreAsoAccount add ignore aso account.

func (*Dao) AsoAccountRangeCloud

func (d *Dao) AsoAccountRangeCloud(c context.Context, st, ed time.Time) (res []*model.AsoAccount, err error)

AsoAccountRangeCloud get aso account from cloud.

func (*Dao) AsoAccountRangeLocal

func (d *Dao) AsoAccountRangeLocal(c context.Context, st, ed time.Time) (res []*model.OriginAsoAccount, err error)

AsoAccountRangeLocal get aso account from local range start and end time.

func (*Dao) AsoAccountsCloud

func (d *Dao) AsoAccountsCloud(c context.Context, vs []int64) (res []*model.AsoAccount, err error)

AsoAccountsCloud get aso accounts from cloud.

func (*Dao) AsoAccountsLocal

func (d *Dao) AsoAccountsLocal(c context.Context, vs []int64) (res []*model.OriginAsoAccount, err error)

AsoAccountsLocal get aso accounts from origin.

func (*Dao) Close

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

Close close connections.

func (*Dao) Ping

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

Ping check dao ok.

func (*Dao) UpdateAsoAccountCloud

func (d *Dao) UpdateAsoAccountCloud(c context.Context, a *model.AsoAccount, mt time.Time) (affected int64, err error)

UpdateAsoAccountCloud update aso account.

Jump to

Keyboard shortcuts

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