utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLedgerFunc

func ReadLedgerFunc(c config.Config) func(w http.ResponseWriter, req *http.Request)

ReadLedgerFunc returns a function that reads the current state of the ledger file

func SyncLedger

func SyncLedger(c config.Config)

SyncLedger runs a loop to continously update the ledger file

Types

type Transaction

type Transaction struct {
	Time    time.Time
	Account string
	Payee   string
	Amount  float64
	Total   float64
}

Transaction defines a ledger event

Jump to

Keyboard shortcuts

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