data

package
v0.0.0-...-e7e2df9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilesystemTemplateRepo

func NewFilesystemTemplateRepo(templatesFolder string) *filesystemTemplateRepo

func NewGolangTemplateEngine

func NewGolangTemplateEngine() *golangTemplateEngine

func NewPdfReportExporter

func NewPdfReportExporter(png *pngReportExporter) *pdfReportExporter

func NewPngReportExporter

func NewPngReportExporter(timeout time.Duration, vpHeight, vpWidth int) *pngReportExporter

Types

type ReportExporter

type ReportExporter interface {
	Export(url string) ([]byte, *models.PrintOptions, error)
}

type TemplateEngine

type TemplateEngine interface {
	Render(templateContent []byte, ctx *models.TemplateContext) ([]byte, error)
}

type TemplateRepository

type TemplateRepository interface {
	ListAll() ([]map[string]interface{}, error)
	LoadTemplate(reportName string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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