Documentation ¶
Index ¶
- type AccountGateway
- type CustomerGateway
- func (g *CustomerGateway) Create(customer *entity.Customer) error
- func (g *CustomerGateway) Delete(customer *entity.Customer) error
- func (g *CustomerGateway) FindAll() ([]*entity.Customer, error)
- func (g *CustomerGateway) FindById(id string) (*entity.Customer, error)
- func (g *CustomerGateway) Update(customer *entity.Customer) error
- type TransactionGateway
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountGateway ¶
type AccountGateway struct {
// contains filtered or unexported fields
}
func NewAccountGateway ¶
func NewAccountGateway(db *sql.DB) *AccountGateway
func (*AccountGateway) FindByCustomer ¶
type CustomerGateway ¶
type CustomerGateway struct {
// contains filtered or unexported fields
}
func NewCustomerGateway ¶
func NewCustomerGateway(db *sql.DB) *CustomerGateway
type TransactionGateway ¶
type TransactionGateway struct {
// contains filtered or unexported fields
}
func NewTransactionGateway ¶
func NewTransactionGateway(db *sql.DB) *TransactionGateway
func (*TransactionGateway) Create ¶
func (g *TransactionGateway) Create(transaction *entity.Transaction) error
Click to show internal directories.
Click to hide internal directories.