Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type Transaction ¶
type Transaction struct {
ID []byte `gorm:"primaryKey"`
MadeAt time.Time `gorm:"type:date not null"`
ProcessedAt time.Time `gorm:"type:date not null"`
Description string `gorm:"type:text not null"`
Paid float64 `gorm:"type:numeric(15,2) not null"`
Received float64 `gorm:"type:numeric(15,2) not null"`
Balance float64 `gorm:"type:numeric(15,2) not null"`
PersonalDescription string `gorm:"type:text"`
OrderNumber int ``
Link *Transaction `gorm:"-"`
}
func SortTransactions ¶
func SortTransactions(transactions []Transaction) ([]Transaction, error)
func (*Transaction) GenerateHash ¶
func (t *Transaction) GenerateHash()
func (Transaction) String ¶
func (t Transaction) String() string
Click to show internal directories.
Click to hide internal directories.