postgres

package
v0.0.0-...-9fd7169 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database *gorm.DB

Functions

func Init

func Init()

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)

Jump to

Keyboard shortcuts

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