dao

package
v0.0.0-...-73f7d3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBName  = "tcc"
	PKGNAME = "softtrans.dao"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

func Get

func Get() (*Dao, error)

func (*Dao) Init

func (d *Dao) Init() error

func (*Dao) TransCancel

func (d *Dao) TransCancel(transUniqId string) (err error)

func (*Dao) TransCancelSuccess

func (d *Dao) TransCancelSuccess(transUniqId string) (err error)

func (*Dao) TransConfirm

func (d *Dao) TransConfirm(transUniqId string) (err error)

func (*Dao) TransConfirmSuccess

func (d *Dao) TransConfirmSuccess(transUniqId string) (err error)

func (*Dao) TransCreate

func (d *Dao) TransCreate(trans *model.Transaction) (err error)

func (*Dao) TransGet

func (d *Dao) TransGet(transUniqId string) (trans *model.Transaction, err error)

func (*Dao) TransGetByTransId

func (d *Dao) TransGetByTransId(id *model.TransactionId) (trans *model.Transaction, err error)

func (*Dao) TransGetCancellingList

func (d *Dao) TransGetCancellingList(topN int32) (transList []*model.Transaction, err error)

func (*Dao) TransGetConfirmingList

func (d *Dao) TransGetConfirmingList(topN int32) (transList []*model.Transaction, err error)

func (*Dao) TransGetExpiredList

func (d *Dao) TransGetExpiredList(topN int32) (transUniqIds []string, err error)

func (*Dao) TransStepAdd

func (d *Dao) TransStepAdd(transUniqId string, step *model.TransactionStep) (err error)

Jump to

Keyboard shortcuts

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