domain

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	CreateTransaction(context.Context, entities.Transaction) error
	GetAccountBalance(ctx context.Context, account vos.AccountPath) (vos.AccountBalance, error)
	GetAnalyticalData(ctx context.Context, query vos.AccountQuery, fn func(vos.Statement) error) error
	GetAccountHistory(ctxt context.Context, account vos.AccountPath, fn func(vos.EntryHistory) error) error
}

type UseCase

type UseCase interface {
	CreateTransaction(context.Context, entities.Transaction) error
	GetAccountBalance(context.Context, vos.AccountPath) (vos.AccountBalance, error)
	GetAnalyticalData(context.Context, vos.AccountQuery, func(vos.Statement) error) error
	GetAccountHistory(context.Context, vos.AccountPath, func(vos.EntryHistory) error) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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