client

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeUniqueTxnID added in v0.6.0

func MakeUniqueTxnID(fid, accountID string) func(txnID string) string

func ParseOFX added in v0.6.0

func ParseOFX(resp *ofxgo.Response) ([]model.Account, []ledger.Transaction, error)

ParseOFX parses the OFX response for its transactions

func ReadOFX added in v0.5.0

func ReadOFX(r io.Reader) ([]model.Account, []ledger.Transaction, error)

ReadOFX reads r and parses it for an OFX file's transactions

func UnmarshalAccount added in v0.6.0

func UnmarshalAccount(b []byte) (model.Account, error)

UnmarshalAccount attempts to unmarshal JSON accounts from b

func ValidateAccount added in v0.6.0

func ValidateAccount(account model.Account) error

ValidateAccount checks account for invalid data, runs validation for direct connect too

Types

type AccountStore added in v0.3.0

type AccountStore struct {
	plaindb.Bucket
}

AccountStore enables manipulation of accounts

func NewAccountStore added in v0.3.0

func NewAccountStore(db plaindb.DB) (*AccountStore, error)

NewAccountStore load the accounts bucket from db

func (*AccountStore) Add added in v0.3.0

func (s *AccountStore) Add(account model.Account) error

Add pushes a new account into the store, fails if the account ID is already in use

func (*AccountStore) Remove added in v0.3.0

func (s *AccountStore) Remove(id string) error

Remove deletes the account from the store by ID

func (*AccountStore) Update added in v0.3.0

func (s *AccountStore) Update(id string, account model.Account) error

Update replaces the account with a matching ID, fails if the account does not exist

Directories

Path Synopsis
web

Jump to

Keyboard shortcuts

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