Documentation ¶
Index ¶
- Variables
- type Amount
- type Balances
- type Bill
- type Bills
- type DistributionStrategy
- type DistributionStrategyPercentage
- type DistributionStrategyShares
- type Group
- func (grp *Group) AddBill(bill Bill)
- func (grp *Group) AddMember(member Member)
- func (grp *Group) AddPayment(transaction Transaction)
- func (grp *Group) CalculateTransactions() Transactions
- func (grp *Group) GetBalancesForBill(bill Bill) Balances
- func (grp *Group) RemoveBill(billID ID)
- func (grp *Group) RemoveMember(memberID ID)
- func (grp *Group) RemovePayment(paymentID ID)
- type History
- type ID
- type IDs
- type Member
- type Members
- type Transaction
- type Transactions
Constants ¶
This section is empty.
Variables ¶
View Source
var DistributionStrategyEqual = distributionStrategyEqual{}
View Source
var RoundingDigitCount = 4
Functions ¶
This section is empty.
Types ¶
type Bill ¶
func (Bill) TotalAmount ¶
type DistributionStrategy ¶
type DistributionStrategyPercentage ¶
func (DistributionStrategyPercentage) GetBalances ¶
func (d DistributionStrategyPercentage) GetBalances(group *Group, bill Bill) Balances
type DistributionStrategyShares ¶
func (DistributionStrategyShares) GetBalances ¶
func (d DistributionStrategyShares) GetBalances(group *Group, bill Bill) Balances
type Group ¶
type Group struct { Bills Members Transactions Balances }
func (*Group) AddPayment ¶
func (grp *Group) AddPayment(transaction Transaction)
func (*Group) CalculateTransactions ¶
func (grp *Group) CalculateTransactions() Transactions
func (*Group) GetBalancesForBill ¶
func (*Group) RemoveBill ¶
func (*Group) RemoveMember ¶
func (*Group) RemovePayment ¶
type History ¶
type History struct { Received Transactions Sent Transactions }
type Transaction ¶
func (Transaction) String ¶
func (t Transaction) String() string
type Transactions ¶
type Transactions []Transaction
Click to show internal directories.
Click to hide internal directories.