budgets

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(b Budget) error

Types

type Budget

type Budget struct {
	Account string
	Budget  decimal.Decimal
}

Budget is a monthly budget tracker

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store manages budgets

func New

func New(db plaindb.DB) (*Store, error)

func (*Store) Add

func (s *Store) Add(b Budget) error

func (*Store) Get

func (s *Store) Get(account string) (Budget, error)

func (*Store) GetAll

func (s *Store) GetAll() ([]Budget, error)

func (*Store) Remove

func (s *Store) Remove(account string) error

func (*Store) Update

func (s *Store) Update(account string, b Budget) error

Jump to

Keyboard shortcuts

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