runner

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvRunner

type CsvRunner struct {
	CsvFile  string
	TplFile  string
	WorkPath string
	Jobs     int
	Lines    int
	// contains filtered or unexported fields
}

func NewCsvRunner

func NewCsvRunner(
	csvFile string,
	tplFile string,
	workPath string,
	jobs uint32,
) (CsvRunner, error)

func (*CsvRunner) Process

func (cr *CsvRunner) Process(stopAt uint64, callback func(status Status)) (Status, error)

type Job

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

func (*Job) Exec

func (j *Job) Exec() JobResult

type JobRequest

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

type JobResult

type JobResult struct {
	Elapsed int64
	Success bool
	Context pongo2.Context
	Output  string
}

type Status

type Status struct {
	Parsed  int
	Total   int
	Errors  int
	Elapsed time.Duration
}

Jump to

Keyboard shortcuts

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