Documentation ¶
Index ¶
- func NewFilesystemTemplateRepo(templatesFolder string) *filesystemTemplateRepo
- func NewGolangTemplateEngine() *golangTemplateEngine
- func NewPdfReportExporter(png *pngReportExporter) *pdfReportExporter
- func NewPngReportExporter(timeout time.Duration, vpHeight, vpWidth int) *pngReportExporter
- type ReportExporter
- type TemplateEngine
- type TemplateRepository
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 ¶
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)
}
Click to show internal directories.
Click to hide internal directories.