business

package
v0.0.0-...-4b7e737 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReportService

func NewReportService(pdf data.ReportExporter, png data.ReportExporter, templateService TemplateService, baseUrl string) *reportService

func NewTemplateService

func NewTemplateService(engine data.TemplateEngine, repo data.TemplateRepository) *templateService

Types

type ReportService

type ReportService interface {
	ExportReportHtml(reportId string, data interface{}) ([]byte, error)
	ExportReportPdf(reportId string, data interface{}) ([]byte, error)
	ExportReportPng(reportId string, data interface{}) ([]byte, error)
}

type TemplateService

type TemplateService interface {
	ListTemplates() ([]string, error)
	GetTemplate(reportId string) ([]byte, error)
	RenderTemplate(reportId string, data interface{}) ([]byte, error)
}

Jump to

Keyboard shortcuts

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