Documentation ¶
Index ¶
- type Store
- func (s *Store) AddTransaction(ctx context.Context, t client.Transaction) error
- func (s *Store) ExecUnderTx(ctx context.Context, fn func(txStore client.Store) error) error
- func (s *Store) QueryByID(ctx context.Context, clientID int) (client.Client, error)
- func (s *Store) QueryTransactions(ctx context.Context, clientID, pageNumber, rowsPerPage int) ([]client.Transaction, error)
- func (s *Store) UpdateClientBalance(ctx context.Context, clientID, balance int) (client.Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddTransaction ¶
func (*Store) ExecUnderTx ¶
func (*Store) QueryTransactions ¶
Click to show internal directories.
Click to hide internal directories.