sync

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accounts added in v0.3.0

func Accounts(fileName string, accounts *client.AccountStore) error

Accounts writes this account store to the given file name, passwords are included

func Ledger added in v0.2.0

func Ledger(logger *zap.Logger, ldg *ledger.Ledger, accountStore *client.AccountStore, rulesStore *rules.Store) 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, fileName string) error

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

func Rules added in v0.3.0

func Rules(fileName string, store *rules.Store) error

Rules writes this rules store to the given file name

func Sync

func Sync(logger *zap.Logger, ledgerFileName string, ldg *ledger.Ledger, accountStore *client.AccountStore, rulesStore *rules.Store) 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