Documentation ¶
Index ¶
- type Account
- type AssetRecord
- type Book
- func (b *Book) AddTransactionInventoryRecord(tid int, value AssetRecord) error
- func (b *Book) AddTransactionRecord(tid int, value Record) error
- func (b *Book) DeleteAccount(tid int) error
- func (b *Book) DeleteInventory(tid int) error
- func (b *Book) DeleteTag(tid int) error
- func (b *Book) DeleteTransaction(tid int) error
- func (b *Book) DeleteTransactionInventoryRecord(tid int, iid int) error
- func (b *Book) DeleteTransactionRecord(tid int, aid int) error
- func (b *Book) GetAccountByID(id int) (Account, error)
- func (b *Book) GetAccountByName(name string) (Account, error)
- func (b *Book) GetAccountByTagID(id int) ([]Account, error)
- func (b *Book) GetInventoryByID(id int) (Inventory, error)
- func (b *Book) GetInventoryByName(name string) (Inventory, error)
- func (b *Book) GetInventoryByTagID(id int) ([]Inventory, error)
- func (b *Book) GetTagByID(id int) (Tag, error)
- func (b *Book) GetTagByName(name string) (Tag, error)
- func (b *Book) GetTagOfAccountID(id int) ([]Tag, error)
- func (b *Book) GetTagOfInventoryID(id int) ([]Tag, error)
- func (b *Book) GetTransactionByID(id int) (Transaction, error)
- func (b *Book) GetTransactionByTagID(id int) ([]Transaction, error)
- func (b *Book) GetTransactionWithinDuration(start, end time.Time) ([]Transaction, error)
- func (b *Book) NewAccount(account Account) (int, error)
- func (b *Book) NewInventory(inventory Inventory) (int, error)
- func (b *Book) NewTag(tag Tag) (int, error)
- func (b *Book) NewTransaction(TX Transaction, time *time.Time) (int, error)
- func (b *Book) SearchAccountByName(name string) ([]Account, error)
- func (b *Book) SearchAccountByPrefix(prefix string) ([]Account, error)
- func (b *Book) SearchInventoryByName(name string) ([]Inventory, error)
- func (b *Book) SearchInventoryByPrefix(prefix string) ([]Inventory, error)
- func (b *Book) SearchTagByName(name string) ([]Tag, error)
- func (b *Book) SearchTagByPrefix(prefix string) ([]Tag, error)
- func (b *Book) SetAccount(tid int, value Account) error
- func (b *Book) SetInventory(tid int, value Inventory) error
- func (b *Book) SetTag(tid int, value Tag) error
- func (b *Book) SetTransactionInfo(tid int, value Transaction) error
- type Inventory
- type Record
- type Tag
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetRecord ¶
type Book ¶
type Book struct { Name string // contains filtered or unexported fields }
func (*Book) AddTransactionInventoryRecord ¶
func (b *Book) AddTransactionInventoryRecord(tid int, value AssetRecord) error
func (*Book) AddTransactionRecord ¶
func (*Book) DeleteAccount ¶
func (*Book) DeleteInventory ¶
func (*Book) DeleteTransaction ¶
func (*Book) DeleteTransactionInventoryRecord ¶
func (*Book) DeleteTransactionRecord ¶
func (*Book) GetTransactionByID ¶
func (b *Book) GetTransactionByID(id int) (Transaction, error)
func (*Book) GetTransactionByTagID ¶
func (b *Book) GetTransactionByTagID(id int) ([]Transaction, error)
func (*Book) GetTransactionWithinDuration ¶
func (b *Book) GetTransactionWithinDuration(start, end time.Time) ([]Transaction, error)
func (*Book) NewTransaction ¶
func (*Book) SearchAccountByName ¶
func (*Book) SearchAccountByPrefix ¶
func (*Book) SearchInventoryByName ¶
func (*Book) SearchInventoryByPrefix ¶
func (*Book) SetTransactionInfo ¶
func (b *Book) SetTransactionInfo(tid int, value Transaction) error
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.