server

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: 34 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(
	db plaindb.DB,
	ldgStore *ledger.Store,
	accountStore *client.AccountStore,
	rulesFile vcs.File, rulesStore *rules.Store,
	logger *zap.Logger,
	options Options,
) error

Run starts the server

Types

type AccountMessage added in v0.4.0

type AccountMessage struct {
	AccountID   string `json:",omitempty"`
	AccountName string `json:",omitempty"`
	Message     string
}

AccountMessage contains important information for an account

type AccountResponse

type AccountResponse struct {
	ID             string
	Account        string
	AccountType    string
	OpeningBalance *decimal.Decimal
	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
	OpeningBalanceDate *time.Time
	Messages           []AccountMessage
	Accounts           []AccountResponse
}

BalanceResponse is the response type for fetching account balances

type CSVRule added in v0.8.0

type CSVRule struct {
	Conditions []string
	Account2   string
}

CSVRule is the request model for changing a single rule

type Options added in v0.6.1

type Options struct {
	Address  string
	AutoSync bool
	Password redactor.String
}

Options contains options for configuring the Sage HTTP server

Jump to

Keyboard shortcuts

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