Documentation ¶
Index ¶
- func NewDjangoTemplateEngine() engine.TemplateEngine
- func NewFSTemplateRepo(templatesFolder fs.FS) repo.TemplateRepository
- func NewFilesystemRepo(templatesFolder string) repo.TemplateRepository
- func NewGolangTemplateEngine() engine.TemplateEngine
- func NewPongo2TemplateEngine() engine.TemplateEngine
- type GreypotOption
- func WithDjangoTemplateEngine() GreypotOption
- func WithGolangTemplateEngine() GreypotOption
- func WithPlaywrightRenderer(options ...*playwright.RunOptions) GreypotOption
- func WithRenderTimeout(timeout time.Duration) GreypotOption
- func WithTemplateEngine(e engine.TemplateEngine) GreypotOption
- func WithTemplatesFromFS(dir fs.FS) GreypotOption
- func WithTemplatesFromFilesystem(dir string) GreypotOption
- func WithTemplatesRepository(repository repo.TemplateRepository) GreypotOption
- func WithViewport(width, height int) GreypotOption
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDjangoTemplateEngine ¶ added in v0.0.3
func NewDjangoTemplateEngine() engine.TemplateEngine
func NewFSTemplateRepo ¶
func NewFSTemplateRepo(templatesFolder fs.FS) repo.TemplateRepository
func NewFilesystemRepo ¶ added in v0.0.3
func NewFilesystemRepo(templatesFolder string) repo.TemplateRepository
func NewGolangTemplateEngine ¶ added in v0.0.3
func NewGolangTemplateEngine() engine.TemplateEngine
func NewPongo2TemplateEngine ¶ added in v0.0.3
func NewPongo2TemplateEngine() engine.TemplateEngine
Types ¶
type GreypotOption ¶ added in v0.0.3
type GreypotOption func(*Module)
func WithDjangoTemplateEngine ¶ added in v0.0.3
func WithDjangoTemplateEngine() GreypotOption
func WithGolangTemplateEngine ¶ added in v0.0.3
func WithGolangTemplateEngine() GreypotOption
func WithPlaywrightRenderer ¶ added in v0.0.3
func WithPlaywrightRenderer(options ...*playwright.RunOptions) GreypotOption
func WithRenderTimeout ¶ added in v0.0.3
func WithRenderTimeout(timeout time.Duration) GreypotOption
func WithTemplateEngine ¶ added in v0.0.3
func WithTemplateEngine(e engine.TemplateEngine) GreypotOption
func WithTemplatesFromFS ¶ added in v0.0.3
func WithTemplatesFromFS(dir fs.FS) GreypotOption
func WithTemplatesFromFilesystem ¶ added in v0.0.3
func WithTemplatesFromFilesystem(dir string) GreypotOption
func WithTemplatesRepository ¶ added in v0.0.3
func WithTemplatesRepository(repository repo.TemplateRepository) GreypotOption
func WithViewport ¶ added in v0.0.3
func WithViewport(width, height int) GreypotOption
type Module ¶
type Module struct { RenderTimeout time.Duration ViewportHeight int ViewportWidth int TemplateService service.TemplateService ReportService service.ReportService TemplateEngine engine.TemplateEngine TemplateRepository repo.TemplateRepository PDFExporter exporter.ReportExporter PNGExporter exporter.ReportExporter }
func NewModule ¶
func NewModule(options ...GreypotOption) *Module
func NewPlaywrightModule ¶
func NewPlaywrightModule(renderTimeout time.Duration, repo repo.TemplateRepository) *Module
Click to show internal directories.
Click to hide internal directories.