Documentation
¶
Index ¶
- type ConfigBuilder
- func (b *ConfigBuilder) Build() *config.Config
- 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(enabled bool) *PDFGenerationOptionsBuilder
- func (b *PDFGenerationOptionsBuilder) SetTimeout(timeout time.Duration) *PDFGenerationOptionsBuilder
- func (b *PDFGenerationOptionsBuilder) SetVerbose(enabled bool) *PDFGenerationOptionsBuilder
- type PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) Build() generation.PDFGenerationRequest
- 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(enabled bool) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithEngine(engine string) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithOutput(outputPath string) *PDFGenerationRequestBuilder
- func (b *PDFGenerationRequestBuilder) WithTemplate(templatePath string) *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) WithVerbose(enabled bool) *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) 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(enabled bool) *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(enabled bool) *PDFGenerationOptionsBuilder
SetVerbose sets verbose logging
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) WithArrayVariable ¶
func (b *PDFGenerationRequestBuilder) WithArrayVariable(key string, values []interface{}) *PDFGenerationRequestBuilder
WithArrayVariable sets an array variable
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
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(enabled bool) *PDFGenerationRequestBuilder
WithDebug enables debug logging
func (*PDFGenerationRequestBuilder) WithEngine ¶
func (b *PDFGenerationRequestBuilder) WithEngine(engine string) *PDFGenerationRequestBuilder
WithEngine sets the LaTeX engine
func (*PDFGenerationRequestBuilder) WithOutput ¶
func (b *PDFGenerationRequestBuilder) WithOutput(outputPath string) *PDFGenerationRequestBuilder
WithOutput sets the output path
func (*PDFGenerationRequestBuilder) WithTemplate ¶
func (b *PDFGenerationRequestBuilder) WithTemplate(templatePath string) *PDFGenerationRequestBuilder
WithTemplate sets the template path
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
func (*PDFGenerationRequestBuilder) WithVerbose ¶
func (b *PDFGenerationRequestBuilder) WithVerbose(enabled bool) *PDFGenerationRequestBuilder
WithVerbose enables verbose logging