Documentation ¶
Index ¶
- func BenQuestionnaireExport(ben, qID string, db qExportDatabase, uDB qUserLookup, u auth.User) (*impact.Export, error)
- func QuestionnaireExport(qID string, db qExportDatabase, uDB qUserLookup, u auth.User) (*impact.Export, error)
- func Report(args impact.ReportArgs, db ReportDB, u auth.User) (*impact.Report, error)
- func ReportExport(rArgs impact.ReportArgs, r *impact.Report, db ReportExportDatabase, ...) (*impact.Export, error)
- func ReportOnRecords(reportDuration time.Duration, minRequiredRecords int, records []impact.Meeting, ...) (*impact.Report, error)
- type ReportDB
- type ReportExportDatabase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenQuestionnaireExport ¶
func BenQuestionnaireExport(ben, qID string, db qExportDatabase, uDB qUserLookup, u auth.User) (*impact.Export, error)
BenQuestionnaireExport creates a XLSX export of all the records for a particular beneficiary and a questionnaire
func QuestionnaireExport ¶
func QuestionnaireExport(qID string, db qExportDatabase, uDB qUserLookup, u auth.User) (*impact.Export, error)
QuestionnaireExport creates a XLSX export of all the records belonging to a given questionnaire
func ReportExport ¶
func ReportExport(rArgs impact.ReportArgs, r *impact.Report, db ReportExportDatabase, uDB qUserLookup, u auth.User) (*impact.Export, error)
ReportExport converts a Report into an Export. It converts the report into a CSV file.
Types ¶
type ReportDB ¶
type ReportDB interface { GetOutcomeSet(id string, u auth.User) (impact.OutcomeSet, error) GetFilteredOSMeetingsForBeneficiaries(beneficiaries []string, outcomeSetID string, tags []string, or bool, u auth.User) ([]impact.Meeting, error) GetFilteredOSMeetingsInTimeRange(start, end time.Time, outcomeSetID string, tags []string, or bool, u auth.User) ([]impact.Meeting, error) }
type ReportExportDatabase ¶
Click to show internal directories.
Click to hide internal directories.