data

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: 13 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() ([]string, error)
	LoadTemplate(templateId string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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