Documentation
¶
Index ¶
- Variables
- 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 KeyValStoreImpl
- type KeyValStoreIn
- type NoSQL
- type RecipeNoSQL
- func (r RecipeNoSQL) Create(ctx context.Context, recipe domain.Recipe) (domain.Recipe, error)
- func (r RecipeNoSQL) Delete(ctx context.Context, ID domain.RecipeID) error
- func (r RecipeNoSQL) FindAll(ctx context.Context) ([]domain.Recipe, error)
- func (r RecipeNoSQL) FindByID(ctx context.Context, ID domain.RecipeID) (domain.Recipe, error)
- func (r RecipeNoSQL) Update(ctx context.Context, ID domain.RecipeID, recipe domain.Recipe) (domain.Recipe, error)
- type Row
- type Rows
- type SQL
- type Session
- type TransferNoSQL
- type TransferSQL
- type Tx
- type UserNoSQL
- func (r UserNoSQL) Create(ctx context.Context, user domain.User) (domain.User, error)
- func (r UserNoSQL) Delete(ctx context.Context, ID domain.UserID) error
- func (r UserNoSQL) FindAll(ctx context.Context) ([]domain.User, error)
- func (a UserNoSQL) FindByEmail(ctx context.Context, email domain.Email) (domain.User, error)
- func (a UserNoSQL) FindByEmailAndPass(ctx context.Context, email string, password string) (domain.User, error)
- func (r UserNoSQL) FindByID(ctx context.Context, ID domain.UserID) (domain.User, error)
- func (r UserNoSQL) Update(ctx context.Context, ID domain.UserID, user domain.User) (domain.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var KVNotFound = redis.Nil
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 KeyValStoreImpl ¶
type KeyValStoreImpl struct {
// contains filtered or unexported fields
}
func NewKeyValStore ¶
func NewKeyValStore(db KeyValStoreIn) KeyValStoreImpl
type KeyValStoreIn ¶
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 Delete(context.Context, string, interface{}) error StartSession() (Session, error) }
type RecipeNoSQL ¶
type RecipeNoSQL struct {
// contains filtered or unexported fields
}
func NewRecipeNoSQL ¶
func NewRecipeNoSQL(db NoSQL) RecipeNoSQL
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 ¶
type UserNoSQL ¶
type UserNoSQL struct {
// contains filtered or unexported fields
}
func NewUserNoSQL ¶
func (UserNoSQL) FindByEmail ¶
func (UserNoSQL) FindByEmailAndPass ¶
Click to show internal directories.
Click to hide internal directories.