Documentation ¶
Index ¶
- type Driver
- type Persistence
- func (p *Persistence) AddMovement(record *driver.MovementRecord) error
- func (p *Persistence) AddTransaction(record *driver.TransactionRecord) error
- func (p *Persistence) BeginUpdate() error
- func (p *Persistence) Close() error
- func (p *Persistence) Commit() error
- func (p *Persistence) Discard() error
- func (p *Persistence) QueryMovements(params driver.QueryMovementsParams) ([]*driver.MovementRecord, error)
- func (p *Persistence) QueryTransactions(params driver.QueryTransactionsParams) (driver.TransactionIterator, error)
- func (p *Persistence) SetStatus(txID string, status driver.TxStatus) error
- type TransactionIterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct{}
func (Driver) Open ¶
func (d Driver) Open(sp view2.ServiceProvider, name string) (driver.TokenTransactionDB, error)
type Persistence ¶
type Persistence struct {
// contains filtered or unexported fields
}
func (*Persistence) AddMovement ¶
func (p *Persistence) AddMovement(record *driver.MovementRecord) error
func (*Persistence) AddTransaction ¶
func (p *Persistence) AddTransaction(record *driver.TransactionRecord) error
func (*Persistence) BeginUpdate ¶
func (p *Persistence) BeginUpdate() error
func (*Persistence) Close ¶
func (p *Persistence) Close() error
func (*Persistence) Commit ¶
func (p *Persistence) Commit() error
func (*Persistence) Discard ¶
func (p *Persistence) Discard() error
func (*Persistence) QueryMovements ¶
func (p *Persistence) QueryMovements(params driver.QueryMovementsParams) ([]*driver.MovementRecord, error)
func (*Persistence) QueryTransactions ¶
func (p *Persistence) QueryTransactions(params driver.QueryTransactionsParams) (driver.TransactionIterator, error)
type TransactionIterator ¶
type TransactionIterator struct {
// contains filtered or unexported fields
}
func (*TransactionIterator) Close ¶
func (t *TransactionIterator) Close()
func (*TransactionIterator) Next ¶
func (t *TransactionIterator) Next() (*driver.TransactionRecord, error)
Click to show internal directories.
Click to hide internal directories.