sync

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ledger added in v0.2.0

func Ledger(logger *zap.Logger, ldg *ledger.Ledger, accountStore *client.AccountStore, rulesStore *rules.Store, syncFromLedgerStart bool) error

Ledger fetches transactions for each account and categorizes them based on rules

func LedgerFile added in v0.3.0

func LedgerFile(ldg *ledger.Ledger, ledgerFile vcs.File) error

LedgerFile writes the given ledger to disk in "ledger" format

func Rules added in v0.3.0

func Rules(rulesFile vcs.File, store *rules.Store) error

Rules writes this rules store to the given file name

func Shutdown added in v0.6.0

func Shutdown(db plaindb.DB, exitCode int)

func Sync

func Sync(logger *zap.Logger, ledgerFile vcs.File, ldg *ledger.Ledger, accountStore *client.AccountStore, rulesStore *rules.Store, syncFromLedgerStart bool) error

Sync runs a Ledger sync, followed by a LedgerFile sync If a partial failure occurs during Ledger sync, runs LedgerFile sync anyway

Types

This section is empty.

Jump to

Keyboard shortcuts

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