Documentation ¶
Index ¶
Constants ¶
View Source
const (
C_ACCOUNTS_NAME = "accounts"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { AccountAtom `bson:",inline"` Inverted bool `bson:"inverted,omitempty" json:"inverted,omitempty"` Minors []AccountMinor `bson:"minors,omitempty" json:"minors,omitempty"` }
type AccountAtom ¶
type AccountMinor ¶
type AccountMinor struct { AccountAtom `bson:",inline"` Inverted bool `bson:"inverted,omitempty" json:"inverted,omitempty"` Subs []AccountAtom `bson:"subs,omitempty" json:"subs,omitempty"` }
type AccountRef ¶
type Entry ¶
type Entry struct { Id bson.ObjectId `bson:"_id,omitempty" json:"id,omitempty"` Debit []EntrySide `bson:"debit" json:"debit"` Credit []EntrySide `bson:"credit" json:"credit"` Date time.Time `bson:"date" json:"date"` Value int64 `bson:"value" json:"value"` Tags []string `bson:"tags" json:"tags"` Notes string `bson:"notes" json:"notes"` Files []bson.ObjectId `bson:"files" json:"files"` }
type EntrySide ¶
type EntrySide struct { Account AccountRef `bson:"account" json:"account"` Value int64 `bson:"value,omitempty" json:"value,omitempty"` }
Click to show internal directories.
Click to hide internal directories.