Versions in this module Expand all Collapse all v0 v0.0.2 May 5, 2023 v0.0.1 May 5, 2023 Changes in this version + func LoadPrivateKey(dat []byte) (*rsa.PrivateKey, error) + func LoadPrivateKeyFromFile(fp string) (*rsa.PrivateKey, error) + type Account struct + AccountGroup *AccountGroup + AccountNumber int + Activity string + Category string + IsEnabled bool + Name string + Type string + type AccountGroup struct + ID int + Name string + Seq int + type Client struct + func New(clientID string, pk *rsa.PrivateKey) (*Client, error) + func (c *Client) Accounts(ctx context.Context, opts ...ListAccountOption) ([]Account, error) + func (c *Client) Transaction(ctx context.Context, id int) (*Transaction, error) + func (c *Client) Transactions(ctx context.Context, opts ...ListTransactionOption) ([]Transaction, error) + type Date struct + Day int + Month time.Month + Year int + func (d *Date) UnmarshalJSON(data []byte) error + func (d Date) String() string + type Fund struct + ID int + Name string + type ListAccountOption func(*listAccountsOpts) + func WithAccountName(acctName string) ListAccountOption + type ListTransactionOption func(*listTransactionsOpts) + func WithAccountNumber(acctNumber int) ListTransactionOption + func WithRangeEnd(year int, month time.Month, day int) ListTransactionOption + func WithRangeStart(year int, month time.Month, day int) ListTransactionOption + type Time struct + func (t *Time) UnmarshalJSON(data []byte) error + type Transaction struct + Amount float64 + Created Time + Date Date + ID int + IDNumber int + InClosedPeriod bool + Lines []TransactionLine + Memo string + type TransactionLine struct + Account Account + Amount float64 + Fund Fund + ID int