mysql

package
v0.0.0-...-ca54044 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

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) Create

func (g *AccountGateway) Create(account *entity.Account) error

func (*AccountGateway) FindByCustomer

func (g *AccountGateway) FindByCustomer(customer *entity.Customer) ([]*entity.Account, error)

func (*AccountGateway) FindById

func (g *AccountGateway) FindById(id string) (*entity.Account, error)

func (*AccountGateway) Update

func (g *AccountGateway) Update(account *entity.Account) error

type CustomerGateway

type CustomerGateway struct {
	// contains filtered or unexported fields
}

func NewCustomerGateway

func NewCustomerGateway(db *sql.DB) *CustomerGateway

func (*CustomerGateway) Create

func (g *CustomerGateway) Create(customer *entity.Customer) error

func (*CustomerGateway) Delete

func (g *CustomerGateway) Delete(customer *entity.Customer) error

func (*CustomerGateway) FindAll

func (g *CustomerGateway) FindAll() ([]*entity.Customer, error)

func (*CustomerGateway) FindById

func (g *CustomerGateway) FindById(id string) (*entity.Customer, error)

func (*CustomerGateway) Update

func (g *CustomerGateway) Update(customer *entity.Customer) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL