Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVable ¶
type CSVable interface {
ToCSV() [][]string
}
CSVable provides functionality to convert a struct type to CSV-writable data.
type StatisticsReport ¶
type StatisticsReport struct { ClosedTransactions int AcceptedTransactions int RejectedTransactions int FirstYearAcceptedMonthlyFilings map[t.Month]int SecondYearAcceptedMonthlyFilings map[t.Month]int }
StatisticsReport holds statistical data formed from Transaction data.
func NewStatisticsReport ¶
func NewStatisticsReport() *StatisticsReport
NewStatisticsReport returns a newly constructed StatisticsReport with default values.
func (*StatisticsReport) ToCSV ¶
func (sr *StatisticsReport) ToCSV() [][]string
ToCSV returns a [][]string version of the data within the StatisticsReport struct provided.
type Transaction ¶
type Transaction struct { ID string `bson:"_id"` Data TransactionData `bson:"data"` }
Transaction describes a transaction database entity.
type TransactionData ¶
type TransactionData struct { Description string `bson:"description"` Filings map[string]TransactionFiling `bson:"filings"` Links map[string]string `bson:"links"` Status string `bson:"status"` ClosedAt time.Time `bson:"created_at"` }
TransactionData holds the data of each Transaction.
type TransactionFiling ¶
TransactionFiling contains the type and status of a Transactions Filing.
Click to show internal directories.
Click to hide internal directories.