domain

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAccountBalanceInput added in v0.7.0

type GetAccountBalanceInput struct {
	Account   vos.Account
	StartDate time.Time
	EndDate   time.Time
}

type Instrumentator added in v0.6.0

type Instrumentator interface {
	MonitorSegment(ctx context.Context) Segment
	MonitorDataSegment(ctx context.Context, collection, operation, query string) Segment
}

type Repository

type Repository interface {
	CreateTransaction(context.Context, entities.Transaction) error
	GetBoundedAccountBalance(context.Context, vos.Account, time.Time, time.Time) (vos.AccountBalance, error)
	GetAnalyticAccountBalance(context.Context, vos.Account) (vos.AccountBalance, error)
	GetSyntheticAccountBalance(context.Context, vos.Account) (vos.AccountBalance, error)
	GetSyntheticReport(context.Context, vos.Account, int, time.Time, time.Time) (*vos.SyntheticReport, error)
	ListAccountEntries(context.Context, vos.AccountEntryRequest) ([]vos.AccountEntry, pagination.Cursor, error)
}

type Segment added in v0.6.0

type Segment interface {
	End()
}

type UseCase

type UseCase interface {
	CreateTransaction(context.Context, entities.Transaction) error
	GetAccountBalance(context.Context, GetAccountBalanceInput) (vos.AccountBalance, error)
	GetSyntheticReport(context.Context, vos.Account, int, time.Time, time.Time) (*vos.SyntheticReport, error)
	ListAccountEntries(context.Context, vos.AccountEntryRequest) (vos.AccountEntryResponse, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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