Documentation ¶
Index ¶
- Variables
- func SumJournal(jnn ...[]Journal) int
- type Account
- type BS
- type Bookkeeping
- func (bk *Bookkeeping) FetchAc(opt FetchAcOpts) ([]Account, error)
- func (bk *Bookkeeping) FetchBS(opt FetchBSOpts) (BS, error)
- func (bk *Bookkeeping) FetchGL(opts ...FetchGLOpts) (map[int][]Journal, error)
- func (bk *Bookkeeping) FetchPL(opt FetchPLOpts) (PL, error)
- func (bk *Bookkeeping) Post(jn []Journal) error
- type DB
- type DBAccounts
- type DBAccountsFetchOption
- type DBJournals
- type DBJournalsFetchOption
- type FetchAcOpts
- type FetchBSOpts
- type FetchGLOpts
- type FetchPLOpts
- type Journal
- type PL
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CommitHash string
)
Functions ¶
func SumJournal ¶
Types ¶
type Bookkeeping ¶
type Bookkeeping struct {
// contains filtered or unexported fields
}
func NewBookkeeping ¶
func NewBookkeeping(db *DB) *Bookkeeping
func (*Bookkeeping) FetchAc ¶
func (bk *Bookkeeping) FetchAc(opt FetchAcOpts) ([]Account, error)
func (*Bookkeeping) FetchBS ¶
func (bk *Bookkeeping) FetchBS(opt FetchBSOpts) (BS, error)
func (*Bookkeeping) FetchGL ¶
func (bk *Bookkeeping) FetchGL(opts ...FetchGLOpts) (map[int][]Journal, error)
func (*Bookkeeping) FetchPL ¶
func (bk *Bookkeeping) FetchPL(opt FetchPLOpts) (PL, error)
func (*Bookkeeping) Post ¶
func (bk *Bookkeeping) Post(jn []Journal) error
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) InitAccounts ¶
func (*DB) InitSchema ¶
type DBAccounts ¶
type DBAccounts struct {
// contains filtered or unexported fields
}
func NewDBAccounts ¶
func NewDBAccounts(db *DB) *DBAccounts
func (*DBAccounts) Fetch ¶
func (a *DBAccounts) Fetch(opt DBAccountsFetchOption) ([]Account, error)
func (*DBAccounts) Insert ¶
func (a *DBAccounts) Insert(items ...Account) error
type DBAccountsFetchOption ¶
type DBJournals ¶
type DBJournals struct {
// contains filtered or unexported fields
}
func NewDBJournals ¶
func NewDBJournals(db *DB) *DBJournals
func (*DBJournals) Fetch ¶
func (jn *DBJournals) Fetch(opt DBJournalsFetchOption) ([]Journal, error)
func (*DBJournals) Insert ¶
func (jn *DBJournals) Insert(items ...Journal) error
type DBJournalsFetchOption ¶
type DBJournalsFetchOption struct { After sql.NullTime Before sql.NullTime Code []int // this may conflict with Code CodeRangeFrom int // this may conflict with Code CodeRangeTo int }
func (DBJournalsFetchOption) CodeRange ¶
func (opt DBJournalsFetchOption) CodeRange(from, to int) DBJournalsFetchOption
type FetchAcOpts ¶
type FetchBSOpts ¶
type FetchGLOpts ¶
type FetchGLOpts struct {
AccountIDList []int
}
Click to show internal directories.
Click to hide internal directories.