batch

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchInput

type BatchInput map[string]interface{}

type BatchJob

type BatchJob struct {
	Name     string
	Inputs   map[InputId]BatchInput
	Job      func(input BatchInput) (BatchOutput, error)
	Interval time.Duration
	Version  int
}

type BatchJobResult

type BatchJobResult struct {
	Successes int
	Fails     int
	Skipped   int
	Outputs   map[InputId]InputResult
}

type BatchOutput

type BatchOutput map[string]interface{}

type BatchProcessor

type BatchProcessor interface {
	RunJob(job BatchJob) (BatchJobResult, error)
}

func NewBatchProcessor

func NewBatchProcessor(dir string) BatchProcessor

type InputId

type InputId string

type InputResult

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

Jump to

Keyboard shortcuts

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