Documentation ¶
Index ¶
- type AccountNoSQL
- func (a AccountNoSQL) Create(ctx context.Context, account domain.Account) (domain.Account, error)
- func (a AccountNoSQL) FindAll(ctx context.Context) ([]domain.Account, error)
- func (a AccountNoSQL) FindBalance(ctx context.Context, ID domain.AccountID) (domain.Account, error)
- func (a AccountNoSQL) FindByID(ctx context.Context, ID domain.AccountID) (domain.Account, error)
- func (a AccountNoSQL) UpdateBalance(ctx context.Context, ID domain.AccountID, balance domain.Money) error
- type AccountSQL
- func (a AccountSQL) Create(ctx context.Context, account domain.Account) (domain.Account, error)
- func (a AccountSQL) FindAll(ctx context.Context) ([]domain.Account, error)
- func (a AccountSQL) FindBalance(ctx context.Context, ID domain.AccountID) (domain.Account, error)
- func (a AccountSQL) FindByID(ctx context.Context, ID domain.AccountID) (domain.Account, error)
- func (a AccountSQL) UpdateBalance(ctx context.Context, ID domain.AccountID, balance domain.Money) error
- type NoSQL
- type Row
- type Rows
- type SQL
- type Session
- type TransferNoSQL
- type TransferSQL
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountNoSQL ¶
type AccountNoSQL struct {
// contains filtered or unexported fields
}
func NewAccountNoSQL ¶
func NewAccountNoSQL(db NoSQL) AccountNoSQL
func (AccountNoSQL) FindBalance ¶
func (AccountNoSQL) UpdateBalance ¶
type AccountSQL ¶
type AccountSQL struct {
// contains filtered or unexported fields
}
func NewAccountSQL ¶
func NewAccountSQL(db SQL) AccountSQL
func (AccountSQL) FindBalance ¶
func (AccountSQL) UpdateBalance ¶
type NoSQL ¶
type NoSQL interface { Store(context.Context, string, interface{}) error Update(context.Context, string, interface{}, interface{}) error FindAll(context.Context, string, interface{}, interface{}) error FindOne(context.Context, string, interface{}, interface{}, interface{}) error StartSession() (Session, error) }
type TransferNoSQL ¶
type TransferNoSQL struct {
// contains filtered or unexported fields
}
func NewTransferNoSQL ¶
func NewTransferNoSQL(db NoSQL) TransferNoSQL
func (TransferNoSQL) WithTransaction ¶
type TransferSQL ¶
type TransferSQL struct {
// contains filtered or unexported fields
}
func NewTransferSQL ¶
func NewTransferSQL(db SQL) TransferSQL
func (TransferSQL) WithTransaction ¶
Click to show internal directories.
Click to hide internal directories.