job

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	ID        string     `json:"id"`
	Status    StatusKind `json:"status"`
	Mode      ModeKind   `json:"mode"`
	Message   string     `json:"message"`
	Timestamp string     `json:"timestamp"`

	Attachments []string `json:"attachments,omitempty"`
	InvoiceID   string   `json:"invoice_id,omitempty"` // Falls schon bekannt
	PdfPath     string   `json:"pdf_path,omitempty"`
	FXPath      string   `json:"fx_path,omitempty"`
	OutputPath  string   `json:"output_path"`
}

func New

func New() *Job

func (*Job) Result

func (j *Job) Result(doneFile string) error

type ModeKind

type ModeKind string
const (
	ModePdf      ModeKind = "GENERATE_PDF"
	ModePar      ModeKind = "GENERATE_PAR"
	ModeFx       ModeKind = "GENERATE_FX"
	ModeZF2      ModeKind = "GENERATE_ZF2"
	ModeValidate ModeKind = "VALIDATE_ZF2"
	ModeExtract  ModeKind = "EXTRACT_FX"
)

type StatusKind

type StatusKind string
const (
	StatusOK      StatusKind = "SUCCESS"
	StatusError   StatusKind = "ERROR"
	StatusRunning StatusKind = "RUNNING"
)

Jump to

Keyboard shortcuts

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