builders

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigBuilder

type ConfigBuilder struct {
	// contains filtered or unexported fields
}

ConfigBuilder builds configuration objects

func NewConfigBuilder

func NewConfigBuilder() *ConfigBuilder

NewConfigBuilder creates a new config builder

func (*ConfigBuilder) Build

func (b *ConfigBuilder) Build() *config.Config

Build constructs the final config

func (*ConfigBuilder) BuildValidated

func (b *ConfigBuilder) BuildValidated() (*config.Config, error)

BuildValidated returns construction failures accumulated by the builder.

func (*ConfigBuilder) Err

func (b *ConfigBuilder) Err() error

Err reports the first construction error accumulated by the fluent builder.

func (*ConfigBuilder) WithComplexVariable

func (b *ConfigBuilder) WithComplexVariable(key string, value map[string]interface{}) *ConfigBuilder

WithComplexVariable sets a complex variable

func (*ConfigBuilder) WithConversion

func (b *ConfigBuilder) WithConversion(enabled bool, formats ...string) *ConfigBuilder

WithConversion enables conversion

func (*ConfigBuilder) WithEngine

func (b *ConfigBuilder) WithEngine(engine string) *ConfigBuilder

WithEngine sets the LaTeX engine

func (*ConfigBuilder) WithOutput

func (b *ConfigBuilder) WithOutput(outputPath string) *ConfigBuilder

WithOutput sets the output path

func (*ConfigBuilder) WithTemplate

func (b *ConfigBuilder) WithTemplate(templatePath string) *ConfigBuilder

WithTemplate sets the template path

func (*ConfigBuilder) WithVariable

func (b *ConfigBuilder) WithVariable(key, value string) *ConfigBuilder

WithVariable sets a simple variable

type PDFGenerationOptionsBuilder

type PDFGenerationOptionsBuilder struct {
	// contains filtered or unexported fields
}

PDFGenerationOptionsBuilder builds PDF generation options

func NewPDFGenerationOptionsBuilder

func NewPDFGenerationOptionsBuilder() *PDFGenerationOptionsBuilder

NewPDFGenerationOptionsBuilder creates a new options builder

func (*PDFGenerationOptionsBuilder) Build

Build constructs the final options

func (*PDFGenerationOptionsBuilder) DisableCleanup

DisableCleanup disables auxiliary file cleanup

func (*PDFGenerationOptionsBuilder) DisableConversion

DisableConversion disables PDF to image conversion

func (*PDFGenerationOptionsBuilder) EnableCleanup

EnableCleanup enables auxiliary file cleanup

func (*PDFGenerationOptionsBuilder) EnableConversion

func (b *PDFGenerationOptionsBuilder) EnableConversion(formats ...string) *PDFGenerationOptionsBuilder

EnableConversion enables PDF to image conversion

func (*PDFGenerationOptionsBuilder) SetDebug

SetDebug sets debug logging

func (*PDFGenerationOptionsBuilder) SetTimeout

SetTimeout sets the generation timeout

func (*PDFGenerationOptionsBuilder) SetVerbose

SetVerbose sets verbose logging

func (*PDFGenerationOptionsBuilder) SetWatchMode

SetWatchMode sets file watching mode

type PDFGenerationRequestBuilder

type PDFGenerationRequestBuilder struct {
	// contains filtered or unexported fields
}

PDFGenerationRequestBuilder builds PDF generation requests using the Builder pattern

func NewPDFGenerationRequestBuilder

func NewPDFGenerationRequestBuilder() *PDFGenerationRequestBuilder

NewPDFGenerationRequestBuilder creates a new builder

func (*PDFGenerationRequestBuilder) Build

Build constructs the final PDF generation request

func (*PDFGenerationRequestBuilder) BuildValidated

BuildValidated returns conversion failures accumulated by fluent builder methods.

func (*PDFGenerationRequestBuilder) Err

Err reports the first construction error accumulated by the fluent builder.

func (*PDFGenerationRequestBuilder) WithArrayVariable

func (b *PDFGenerationRequestBuilder) WithArrayVariable(key string, values []interface{}) *PDFGenerationRequestBuilder

WithArrayVariable sets an array variable Deprecated: Use WithVariables or WithVariablesFromStruct instead

func (*PDFGenerationRequestBuilder) WithCleanup

WithCleanup enables auxiliary file cleanup

func (*PDFGenerationRequestBuilder) WithComplexVariable

func (b *PDFGenerationRequestBuilder) WithComplexVariable(key string, value map[string]interface{}) *PDFGenerationRequestBuilder

WithComplexVariable sets a complex nested variable Deprecated: Use WithVariables or WithVariablesFromStruct instead

func (*PDFGenerationRequestBuilder) WithConversion

func (b *PDFGenerationRequestBuilder) WithConversion(enabled bool, formats ...string) *PDFGenerationRequestBuilder

WithConversion enables PDF to image conversion

func (*PDFGenerationRequestBuilder) WithDebug

WithDebug enables debug logging

func (*PDFGenerationRequestBuilder) WithEngine

WithEngine sets the LaTeX engine

func (*PDFGenerationRequestBuilder) WithLatexmk

WithLatexmk enables latexmk compilation

func (*PDFGenerationRequestBuilder) WithOutput

WithOutput sets the output path

func (*PDFGenerationRequestBuilder) WithPasses

WithPasses sets the number of compilation passes

func (*PDFGenerationRequestBuilder) WithTemplate

func (b *PDFGenerationRequestBuilder) WithTemplate(templatePath string) *PDFGenerationRequestBuilder

WithTemplate sets the template path

func (*PDFGenerationRequestBuilder) WithTemplateVariables

WithTemplateVariables sets variables using TemplateVariables Value Object

func (*PDFGenerationRequestBuilder) WithTimeout

WithTimeout sets the generation timeout

func (*PDFGenerationRequestBuilder) WithVariable

func (b *PDFGenerationRequestBuilder) WithVariable(key string, value interface{}) *PDFGenerationRequestBuilder

WithVariable sets a simple variable

func (*PDFGenerationRequestBuilder) WithVariables

func (b *PDFGenerationRequestBuilder) WithVariables(variables map[string]interface{}) *PDFGenerationRequestBuilder

WithVariables sets multiple variables from a map For backward compatibility - converts map[string]interface{} to TemplateVariables

func (*PDFGenerationRequestBuilder) WithVariablesFromStruct

func (b *PDFGenerationRequestBuilder) WithVariablesFromStruct(s interface{}) *PDFGenerationRequestBuilder

WithVariablesFromStruct sets variables by converting a struct using StructConverter

func (*PDFGenerationRequestBuilder) WithVerbose

WithVerbose enables verbose logging

func (*PDFGenerationRequestBuilder) WithWatchMode

WithWatchMode enables file watching for automatic rebuilds

func (*PDFGenerationRequestBuilder) WithWorkingDir

func (b *PDFGenerationRequestBuilder) WithWorkingDir(workingDir string) *PDFGenerationRequestBuilder

WithWorkingDir sets the working directory for LaTeX compilation This isolates template builds to prevent file collisions

Jump to

Keyboard shortcuts

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