Documentation
¶
Index ¶
- func MakeUniqueTxnID(fid, accountID string) func(txnID string) string
- func ParseOFX(resp *ofxgo.Response) ([]model.Account, []ledger.Transaction, error)
- func ReadOFX(r io.Reader) ([]model.Account, []ledger.Transaction, error)
- func UnmarshalAccount(b []byte) (model.Account, error)
- func ValidateAccount(account model.Account) error
- type AccountStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeUniqueTxnID ¶ added in v0.6.0
func UnmarshalAccount ¶ added in v0.6.0
UnmarshalAccount attempts to unmarshal JSON accounts from b
func ValidateAccount ¶ added in v0.6.0
ValidateAccount checks account for invalid data, runs validation for direct connect too
Types ¶
type AccountStore ¶ added in v0.3.0
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
Click to show internal directories.
Click to hide internal directories.