reporting

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2019 License: MIT Imports: 9 Imported by: 0

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

func NewReporter(general *log.Logger) (Reporter, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL