Documentation
¶
Overview ¶
types
Index ¶
Constants ¶
View Source
const ( NativeProvider string = "native" ContainerProvider string = "container" BaseProvider string = "native" WSProvider string = "webservice" PdfEngine string = "loEngine.odt" ZugferdEngine string = "mustang-cli.jar" BaseEngine string = "none" BaseKind WriterKind = "base" PdfKind WriterKind = "pdf" ZugferdKind WriterKind = "zugferd" PdfExecutable string = "soffice" ZugferdExecutable string = "java" )
View Source
const ( FileMask = 0644 DirectoryMask = 0755 PollIntervall = 200 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
func CheckHeartbeat ¶ added in v1.0.0
func Check verifies the heartbeat file. It returns 'true' if everything is okay, and 'false', along with an error, if the engine is stuck.
Types ¶
type AbstractWriter ¶ added in v1.0.0
type AbstractWriter struct {
Provider string
Engine string
Executable string
TimeOut time.Duration
JobArtefactsPath string
JobJsonFile string
JobResultFile string
JobTmpFile string
}
AbstractWriter is Base-Struct for spezialized writer, should never be instantiated
func (*AbstractWriter) Finalize ¶ added in v1.0.0
func (a *AbstractWriter) Finalize(rJob *job.RenderJob, rInput *RenderInput, sourcePath string, lastStep bool) (*RenderOutput, error)
func (*AbstractWriter) Prepare ¶ added in v1.0.0
func (a *AbstractWriter) Prepare(rJob *job.RenderJob, rInput *RenderInput) error
type RenderInput ¶
type RenderOutput ¶
type Writer ¶
type Writer interface {
Render(ctx context.Context, rJob *job.RenderJob, rInput *RenderInput, finalize bool) (*RenderOutput, error)
Prepare(job *job.RenderJob, input *RenderInput) error
Finalize(rJob *job.RenderJob, rInput *RenderInput, sourcePath string, lastStep bool) (*RenderOutput, error)
}
Click to show internal directories.
Click to hide internal directories.