writer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileMask      = 0644 // 0666
	DirectoryMask = 0755 // 0777
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RenderInput

type RenderInput struct {
	RunMode       string
	BytesToRender []byte
	ParPath       string
	OttPath       string
	PdfPath       string
	XMLPath       string
	ArtefactsPath string
	RootPath      string
	Attachments   []string
	OutputPath    string
	Job           *job.Job
}

type RenderOutput

type RenderOutput struct {
	JobID      string
	OutputPath string
	ParPath    string
	StatusPath string
	ODTPath    string
	FXPath     string
	PDFPath    string
}

type Writer

type Writer interface {
	Render(ctx context.Context, in RenderInput, beFinalized bool) (*RenderOutput, error)
	Finalize(renderJob *job.Job, jobDir, sourcePath, outPath string, lastStep bool) (renderOutput *RenderOutput, err error)
}

Jump to

Keyboard shortcuts

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