job

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueueExtract  = "extract"
	QueueValidate = "validate"
	QueueCombine  = "combine" // ZUGFeRD
	QueuePar      = "generate_par"
	QueueFacturX  = "generate_fx"
	QueueZugferd  = "generate_zf"
	QueuePdf      = "generate_pdf"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueKind added in v1.0.0

type QueueKind string

type RenderJob added in v1.0.0

type RenderJob struct {
	ID        string     `json:"id"`
	Status    StatusKind `json:"status"`
	Queue     QueueKind  `json:"queue"`
	Message   string     `json:"message"`
	Timestamp string     `json:"timestamp"`

	InvoiceID   string   `json:"invoice_id,omitempty"` // Falls schon bekannt
	Attachments []string `json:"attachments,omitempty"`

	PdfPath string `json:"pdf_path,omitempty"`
	FXPath  string `json:"fx_path,omitempty"`
	ParPath string `json:"par_path,omitempty"`
}

func New

func New() *RenderJob

func (*RenderJob) Result added in v1.0.0

func (rJob *RenderJob) Result(doneFile string) *nexerrors.Error

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