adapters

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: 16 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 InternalApplicationAdapter

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

InternalApplicationAdapter bridges the API layer with the internal application layer This adapter follows the Adapter pattern from GoF and maintains separation of concerns

func NewInternalApplicationAdapter

func NewInternalApplicationAdapter(cfg *config.Config) *InternalApplicationAdapter

NewInternalApplicationAdapter creates a new adapter

func NewInternalApplicationAdapterWithLogger

func NewInternalApplicationAdapterWithLogger(cfg *config.Config, logger autopdfports.Logger) *InternalApplicationAdapter

NewInternalApplicationAdapterWithLogger creates a new adapter with logger

func (*InternalApplicationAdapter) GeneratePDF

func (iaa *InternalApplicationAdapter) GeneratePDF(cfg *config.Config, template config.Template, debugEnabled bool, workingDir string) ([]byte, map[string]string, error)

GeneratePDF generates a PDF using the internal application layer This method maintains the same signature as the original GeneratePDF function workingDir is optional - if empty, uses default behavior

func (*InternalApplicationAdapter) GeneratePDFContext

func (iaa *InternalApplicationAdapter) GeneratePDFContext(ctx context.Context, cfg *config.Config, template config.Template, debugEnabled bool, workingDir string) ([]byte, map[string]string, error)

GeneratePDFContext runs one generation in an isolated workspace and propagates ctx through template processing, compilation, conversion, and cleanup.

func (*InternalApplicationAdapter) GeneratePDFWithWorkingDir

func (iaa *InternalApplicationAdapter) GeneratePDFWithWorkingDir(cfg *config.Config, template config.Template, debugEnabled bool, workingDir string) ([]byte, map[string]string, error)

GeneratePDFWithWorkingDir generates a PDF using the internal application layer with custom working directory

Jump to

Keyboard shortcuts

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