server

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: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// MaxResults is the maximum number of results from a paginated request
	MaxResults = 50
)

Variables

This section is empty.

Functions

func Run

func Run(
	autoSync bool,
	addr string,
	ledgerFileName string, ldg *ledger.Ledger,
	accountsFileName string, accountStore *client.AccountStore,
	rulesFileName string, rulesStore *rules.Store,
	logger *zap.Logger,
) error

Run starts the server

Types

type AccountResponse

type AccountResponse struct {
	ID          string
	Account     string
	AccountType string
	Balances    []decimal.Decimal
	Institution string `json:",omitempty"`
}

AccountResponse contains details for an account's balance over time

type BalanceResponse

type BalanceResponse struct {
	Start, End time.Time
	Accounts   []AccountResponse
}

BalanceResponse is the response type for fetching account balances

Jump to

Keyboard shortcuts

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