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 InputResult ¶
type InputResult struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.