Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter is a structer that contains a general logger and a csv writer for payout reports
func NewReporter ¶
NewReporter creates a new reporter for general logging and payout reports (csv)
func (*Reporter) Log ¶
func (r *Reporter) Log(msg interface{})
Log uses the genral logger and writes the message
func (*Reporter) PrintPaymentsTable ¶
func (r *Reporter) PrintPaymentsTable(payments delegate.DelegateReport)
PrintPaymentsTable takes in payments and prints them to a table for general logging
func (*Reporter) WriteCSVReport ¶
func (r *Reporter) WriteCSVReport(payments delegate.DelegateReport)
WriteCSVReport writes payments to a csv file for reporting
Click to show internal directories.
Click to hide internal directories.