executor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionSettings

type ExecutionSettings struct {
	DotSize uint `json:"dot_size"`

	InputPath string `json:"input_path"`
	OutPath   string `json:"out_path"`
	Recursive bool   `json:"recursive"`

	Black uint `json:"black"`
	White uint `json:"white"`

	Threads uint `json:"threads"`
}

func (ExecutionSettings) Validate

func (s ExecutionSettings) Validate() error

func (ExecutionSettings) ValidatePipe

func (s ExecutionSettings) ValidatePipe() error

type Executor

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

func NewExecutor

func NewExecutor(settings ExecutionSettings) *Executor

func (*Executor) Execute

func (e *Executor) Execute(input io.Reader) ([]byte, error)

func (*Executor) ExecuteFile

func (e *Executor) ExecuteFile(inputFilePath, outputFilePath string) error

func (*Executor) ExecuteFolder

func (e *Executor) ExecuteFolder(inputFolder, outputFolder string, recursive bool) error

Jump to

Keyboard shortcuts

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