TransferUsecases

package
v0.0.0-...-20a34b2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewAccountService      = accountUsecases.NewAccountService(memaccountRepo)
	NewtransferenceService = NewTransfService(memtransferRepo, memaccountRepo, memtransaction)
)

To be used in tests

Functions

func NewTransfService

func NewTransfService(
	TransferRepo transfer.Repository,
	AccountRepo account.Repository,
	Trx *mem.MemRepositoryTrx,
) transfer.Service

Types

type Services

type Services struct {
	Trx *mem.MemRepositoryTrx
	// contains filtered or unexported fields
}

func (*Services) ShowAllAccountTransfers

func (transfSvc *Services) ShowAllAccountTransfers(Account_Id string) ([]transfer.Transfer, error)

func (*Services) Transfer

func (transfSvc *Services) Transfer(Account_origin_id string, Account_destination_id string, amount int) (transfer.Transfer, error)

Jump to

Keyboard shortcuts

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