report

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Mapping journal.Mapping
}

Builder builds a report.

func (*Builder) FromStream

func (rb *Builder) FromStream(ctx context.Context, ch <-chan *val.Day) (<-chan *Report, <-chan error)

FromStream consumes the stream and produces a report.

type Renderer

type Renderer struct {
	Context            journal.Context
	ShowCommodities    bool
	SortAlphabetically bool
	// contains filtered or unexported fields
}

Renderer renders a report.

func (*Renderer) Render

func (rn *Renderer) Render(r *Report) *table.Table

Render renders a report.

type Report

type Report struct {
	Dates     []time.Time
	Mapping   journal.Mapping
	Positions indexByAccount
}

Report is a balance report for a range of dates.

func (Report) Subtree

func (rep Report) Subtree() map[*journal.Account]struct{}

Subtree returns the accounts of the minimal dense subtree which covers the accounts in this report.

Jump to

Keyboard shortcuts

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