balance

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(repositories ...Repository) *balanceService

Types

type Repository

type Repository interface {
	CharacterID() entity.CharacterID
	CorporationID() entity.CorporationID
	WalletDivisions(ctx context.Context) ([]aggregate.Division, error)
	WalletJournal(ctx context.Context, division aggregate.Division, from, to time.Time) (chan aggregate.JournalRecord, error)
}

type Service

type Service interface {
	Balance(ctx context.Context, from, to time.Time) (*aggregate.Balance, error)
	BalanceByDivision(ctx context.Context, from, to time.Time) (*aggregate.BalanceByDivision, error)
	BalanceByType(ctx context.Context, from, to time.Time) (*aggregate.BalanceByType, error)
	BalanceByDayByDivisionByType(ctx context.Context, from, to time.Time) ([]*aggregate.BalanceByDivisionByType, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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