Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupDatabase ¶
func SetupDatabase() (IMerchantRepository, IApiKeyRepository, IPaymentRepository, error)
Types ¶
type IApiKeyRepository ¶
type IApiKeyRepository interface { FindById(id string) (*model.ApiKey, error) FindByMerchantAndModeAndKeyType(merchantId uuid.UUID, mode enum.Mode, apiKeyType enum.ApiKeyType) (*model.ApiKey, error) Delete(merchantId uuid.UUID, apiKeyId string) error }
func NewApiKeyRepository ¶
func NewApiKeyRepository(db *gorm.DB) (IApiKeyRepository, error)
type IMerchantRepository ¶
type IMerchantRepository interface { FindById(id uuid.UUID) (*model.Merchant, error) FindByEmail(email string) (*model.Merchant, error) Create(merchant *model.Merchant) error Update(merchant *model.Merchant) error DeleteWalletById(id string) error }
func NewMerchantRepository ¶
func NewMerchantRepository(db *gorm.DB) (IMerchantRepository, error)
type IPaymentRepository ¶
type IPaymentRepository interface { FindByMerchantIdAndMode(merchantId uuid.UUID, mode enum.Mode) ([]model.Payment, error) FindByBlockchainIdAndCurrency(id string, currency enum.CryptoCurrency) (*model.Payment, error) Update(payment *model.Payment) error }
func NewPaymentRepository ¶
func NewPaymentRepository(db *gorm.DB) (IPaymentRepository, error)
Click to show internal directories.
Click to hide internal directories.