service

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReportService

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

func NewTemplateService

func NewTemplateService(engine engine.TemplateEngine, repo repo.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