gateway

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: 1 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 interface {
	Create(account *entity.Account) error
	FindById(id string) (*entity.Account, error)
	FindByCustomer(customer *entity.Customer) ([]*entity.Account, error)
	Update(account *entity.Account) error
}

type CustomerGateway

type CustomerGateway interface {
	Create(customer *entity.Customer) error
	FindById(id string) (*entity.Customer, error)
	FindAll() ([]*entity.Customer, error)
	Update(customer *entity.Customer) error
	Delete(customer *entity.Customer) error
}

type TransactionGateway

type TransactionGateway interface {
	Create(transaction *entity.Transaction) error
}

Jump to

Keyboard shortcuts

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