Documentation
¶
Index ¶
- type ConfigBuilder
- func (b *ConfigBuilder) Build() *config.Config
- func (b *ConfigBuilder) BuildValidated() (*config.Config, error)
- func (b *ConfigBuilder) Err() error
- func (b *ConfigBuilder) WithComplexVariable(key string, value map[string]interface{}) *ConfigBuilder
- func (b *ConfigBuilder) WithConversion(enabled bool, formats ...string) *ConfigBuilder
- func (b *ConfigBuilder) WithEngine(engine string) *ConfigBuilder
- func (b *ConfigBuilder) WithOutput(outputPath string) *ConfigBuilder
- func (b *ConfigBuilder) WithTemplate(templatePath string) *ConfigBuilder
- func (b *ConfigBuilder) WithVariable(key, value string) *ConfigBuilder
- type PDFGenerationOptionsBuilder
- func (b *PDFGenerationOptionsBuilder) Build() generation.PDFGenerationOptions
- func (b *PDFGenerationOptionsBuilder) DisableCleanup() *PDFGenerationOptionsBuilder
- func (b *PDFGenerationOptionsBuilder) DisableConversion() *PDFGenerationOptionsBuilder
- func (b *PDFGenerationOptionsBuilder) EnableCleanup() *PDFGenerationOptionsBuilder
- func (b *PDFGenerationOptionsBuilder) EnableConversion(formats ...string) *PDFGenerationOptionsBuilder
- func (b *PDFGenerationOptionsBuilder) SetDebug(debugOptions generation.DebugOptions) *PDFGenerationOptionsBuilder
- func (b *PDFGenerationOptionsBuilder) SetTimeout(timeout time.Duration) *PDFGenerationOptionsBuilder
- func (b *PDFGenerationOptionsBuilder) SetVerbose(level int) *PDFGenerationOptionsBuilder
- func (b *PDFGenerationOptionsBuilder) SetWatchMode(enabled bool) *PDFGenerationOptionsBuilder
- type PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) Build() generation.PDFGenerationRequest
- func (b *PDFGenerationRequestBuilder) BuildValidated() (generation.PDFGenerationRequest, error)
- func (b *PDFGenerationRequestBuilder) Err() error
- func (b *PDFGenerationRequestBuilder) WithArrayVariable(key string, values []interface{}) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithCleanup(enabled bool) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithComplexVariable(key string, value map[string]interface{}) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithConversion(enabled bool, formats ...string) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithDebug(debugOptions generation.DebugOptions) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithEngine(engine string) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithLatexmk(enabled bool) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithOutput(outputPath string) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithPasses(passes int) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithTemplate(templatePath string) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithTemplateVariables(variables *generation.TemplateVariables) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithTimeout(timeout time.Duration) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithVariable(key string, value interface{}) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithVariables(variables map[string]interface{}) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithVariablesFromStruct(s interface{}) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithVerbose(level int) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithWatchMode(enabled bool) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithWorkingDir(workingDir string) *PDFGenerationRequestBuilder
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 ¶ added in v1.3.3
func (b *ConfigBuilder) BuildValidated() (*config.Config, error)
BuildValidated returns construction failures accumulated by the builder.
func (*ConfigBuilder) Err ¶ added in v1.3.3
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 ¶
func (b *PDFGenerationOptionsBuilder) Build() generation.PDFGenerationOptions
Build constructs the final options
func (*PDFGenerationOptionsBuilder) DisableCleanup ¶
func (b *PDFGenerationOptionsBuilder) DisableCleanup() *PDFGenerationOptionsBuilder
DisableCleanup disables auxiliary file cleanup
func (*PDFGenerationOptionsBuilder) DisableConversion ¶
func (b *PDFGenerationOptionsBuilder) DisableConversion() *PDFGenerationOptionsBuilder
DisableConversion disables PDF to image conversion
func (*PDFGenerationOptionsBuilder) EnableCleanup ¶
func (b *PDFGenerationOptionsBuilder) EnableCleanup() *PDFGenerationOptionsBuilder
EnableCleanup enables auxiliary file cleanup
func (*PDFGenerationOptionsBuilder) EnableConversion ¶
func (b *PDFGenerationOptionsBuilder) EnableConversion(formats ...string) *PDFGenerationOptionsBuilder
EnableConversion enables PDF to image conversion
func (*PDFGenerationOptionsBuilder) SetDebug ¶
func (b *PDFGenerationOptionsBuilder) SetDebug(debugOptions generation.DebugOptions) *PDFGenerationOptionsBuilder
SetDebug sets debug logging
func (*PDFGenerationOptionsBuilder) SetTimeout ¶
func (b *PDFGenerationOptionsBuilder) SetTimeout(timeout time.Duration) *PDFGenerationOptionsBuilder
SetTimeout sets the generation timeout
func (*PDFGenerationOptionsBuilder) SetVerbose ¶
func (b *PDFGenerationOptionsBuilder) SetVerbose(level int) *PDFGenerationOptionsBuilder
SetVerbose sets verbose logging
func (*PDFGenerationOptionsBuilder) SetWatchMode ¶ added in v1.2.2
func (b *PDFGenerationOptionsBuilder) SetWatchMode(enabled bool) *PDFGenerationOptionsBuilder
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 ¶
func (b *PDFGenerationRequestBuilder) Build() generation.PDFGenerationRequest
Build constructs the final PDF generation request
func (*PDFGenerationRequestBuilder) BuildValidated ¶ added in v1.3.3
func (b *PDFGenerationRequestBuilder) BuildValidated() (generation.PDFGenerationRequest, error)
BuildValidated returns conversion failures accumulated by fluent builder methods.
func (*PDFGenerationRequestBuilder) Err ¶ added in v1.3.3
func (b *PDFGenerationRequestBuilder) Err() error
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 ¶
func (b *PDFGenerationRequestBuilder) WithCleanup(enabled bool) *PDFGenerationRequestBuilder
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 ¶
func (b *PDFGenerationRequestBuilder) WithDebug(debugOptions generation.DebugOptions) *PDFGenerationRequestBuilder
WithDebug enables debug logging
func (*PDFGenerationRequestBuilder) WithEngine ¶
func (b *PDFGenerationRequestBuilder) WithEngine(engine string) *PDFGenerationRequestBuilder
WithEngine sets the LaTeX engine
func (*PDFGenerationRequestBuilder) WithLatexmk ¶ added in v1.3.0
func (b *PDFGenerationRequestBuilder) WithLatexmk(enabled bool) *PDFGenerationRequestBuilder
WithLatexmk enables latexmk compilation
func (*PDFGenerationRequestBuilder) WithOutput ¶
func (b *PDFGenerationRequestBuilder) WithOutput(outputPath string) *PDFGenerationRequestBuilder
WithOutput sets the output path
func (*PDFGenerationRequestBuilder) WithPasses ¶ added in v1.3.0
func (b *PDFGenerationRequestBuilder) WithPasses(passes int) *PDFGenerationRequestBuilder
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 ¶ added in v1.2.2
func (b *PDFGenerationRequestBuilder) WithTemplateVariables(variables *generation.TemplateVariables) *PDFGenerationRequestBuilder
WithTemplateVariables sets variables using TemplateVariables Value Object
func (*PDFGenerationRequestBuilder) WithTimeout ¶
func (b *PDFGenerationRequestBuilder) WithTimeout(timeout time.Duration) *PDFGenerationRequestBuilder
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 ¶ added in v1.2.2
func (b *PDFGenerationRequestBuilder) WithVariablesFromStruct(s interface{}) *PDFGenerationRequestBuilder
WithVariablesFromStruct sets variables by converting a struct using StructConverter
func (*PDFGenerationRequestBuilder) WithVerbose ¶
func (b *PDFGenerationRequestBuilder) WithVerbose(level int) *PDFGenerationRequestBuilder
WithVerbose enables verbose logging
func (*PDFGenerationRequestBuilder) WithWatchMode ¶ added in v1.2.2
func (b *PDFGenerationRequestBuilder) WithWatchMode(enabled bool) *PDFGenerationRequestBuilder
WithWatchMode enables file watching for automatic rebuilds
func (*PDFGenerationRequestBuilder) WithWorkingDir ¶ added in v1.3.0
func (b *PDFGenerationRequestBuilder) WithWorkingDir(workingDir string) *PDFGenerationRequestBuilder
WithWorkingDir sets the working directory for LaTeX compilation This isolates template builds to prevent file collisions