Documentation ¶
Index ¶
- Variables
- func Init()
- type PostgresCustomerPersistence
- func (persistence *PostgresCustomerPersistence) Create(data *customer.Customer)
- func (persistence *PostgresCustomerPersistence) GetByCodeOrNil(code string) *customer.Customer
- func (persistence *PostgresCustomerPersistence) GetByNationalIdOrNil(nationalId string) *customer.Customer
- func (persistence *PostgresCustomerPersistence) Update(data *customer.Customer)
- type PostgresMerchantPersistence
- func (persistence *PostgresMerchantPersistence) Create(data *merchant.Merchant)
- func (persistence *PostgresMerchantPersistence) GetByCodeOrNil(code string) *merchant.Merchant
- func (persistence *PostgresMerchantPersistence) GetByMerchantIdOrNil(merchantId string) *merchant.Merchant
- func (persistence *PostgresMerchantPersistence) Update(data *merchant.Merchant)
- type PostgresPaymentPersistence
Constants ¶
This section is empty.
Variables ¶
View Source
var Database *gorm.DB
Functions ¶
Types ¶
type PostgresCustomerPersistence ¶
type PostgresCustomerPersistence struct{}
func (*PostgresCustomerPersistence) Create ¶
func (persistence *PostgresCustomerPersistence) Create(data *customer.Customer)
func (*PostgresCustomerPersistence) GetByCodeOrNil ¶
func (persistence *PostgresCustomerPersistence) GetByCodeOrNil(code string) *customer.Customer
func (*PostgresCustomerPersistence) GetByNationalIdOrNil ¶
func (persistence *PostgresCustomerPersistence) GetByNationalIdOrNil(nationalId string) *customer.Customer
func (*PostgresCustomerPersistence) Update ¶
func (persistence *PostgresCustomerPersistence) Update(data *customer.Customer)
type PostgresMerchantPersistence ¶
type PostgresMerchantPersistence struct{}
func (*PostgresMerchantPersistence) Create ¶
func (persistence *PostgresMerchantPersistence) Create(data *merchant.Merchant)
func (*PostgresMerchantPersistence) GetByCodeOrNil ¶
func (persistence *PostgresMerchantPersistence) GetByCodeOrNil(code string) *merchant.Merchant
func (*PostgresMerchantPersistence) GetByMerchantIdOrNil ¶
func (persistence *PostgresMerchantPersistence) GetByMerchantIdOrNil(merchantId string) *merchant.Merchant
func (*PostgresMerchantPersistence) Update ¶
func (persistence *PostgresMerchantPersistence) Update(data *merchant.Merchant)
type PostgresPaymentPersistence ¶
type PostgresPaymentPersistence struct{}
func (*PostgresPaymentPersistence) Create ¶
func (persistence *PostgresPaymentPersistence) Create(data *payment.Payment)
func (*PostgresPaymentPersistence) GetByCodeOrNil ¶
func (persistence *PostgresPaymentPersistence) GetByCodeOrNil(code string) *payment.Payment
func (*PostgresPaymentPersistence) Update ¶
func (persistence *PostgresPaymentPersistence) Update(data *payment.Payment)
Click to show internal directories.
Click to hide internal directories.