build

package
v0.0.0-...-ab31c2f Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleRun

func HandleRun(stdin io.Reader, stdout io.Writer) error

TODO: Consider accepting *bufio.Reader and *bufio.Writer. TODO: Maybe switch textproto to net/http.ReadRequest for simpler code, easier composability and testability (e.g. with CLI tools like HTTPie and packages like net/http/httptest). TODO: Check if multipart/form-data is acceptable here. TODO: Check if relying on the first part to be the main part is OK.

Types

type BuildParams

type BuildParams struct {
	Files       []string
	InputFiles  map[string][]byte
	OutputFiles map[string]struct{}
}

type BuildResult

type BuildResult struct {
	ProcessUsedTime   time.Duration
	ProcessUsedMemory int
	ProcessExitCode   int
}

type Builder

type Builder struct{}

func (*Builder) Build

func (*Builder) Build(ctx context.Context, params *BuildParams) (*BuildResult, error)

type HandleRunParams

type HandleRunParams struct {
	OutputFiles map[string]struct{}
}

type HandleRunResult

type HandleRunResult struct {
	ExitCode int
}

type RunParams

type RunParams struct {
	InputDir  string
	OutputDir string
}

type RunResult

type RunResult struct {
	PDFFile  string
	LogFile  string
	ExitCode int
}

func Run

func Run(params *RunParams) (*RunResult, error)

Jump to

Keyboard shortcuts

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