assertion

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareBalance

func CompareBalance(x, y Balance) compare.Order

Types

type Assertion

type Assertion struct {
	Src      *syntax.Assertion
	Date     time.Time
	Balances []Balance
}

Assertion represents a balance assertion.

func Create

func Create(reg *registry.Registry, a *syntax.Assertion) (*Assertion, error)

type Balance

type Balance struct {
	Src       *syntax.Balance
	Account   *account.Account
	Quantity  decimal.Decimal
	Commodity *commodity.Commodity
}

Jump to

Keyboard shortcuts

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