renderproc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DevRuntimeSource string

DevRuntimeSource runs Vite and the development SSR bridge under Bun.

View Source
var RuntimeSource string

RuntimeSource is compiled into the standalone production renderer.

Functions

This section is empty.

Types

type Process

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

Process is one long-lived renderer executable.

func Start

func Start(executable, workDir string, environment ...string) (*Process, error)

func StartCommand

func StartCommand(executable string, args []string, workDir string, environment ...string) (*Process, error)

StartCommand starts a renderer command and waits for its Unix socket health endpoint.

func (*Process) Close

func (p *Process) Close(ctx context.Context) error

func (*Process) Healthy

func (p *Process) Healthy(ctx context.Context) error

Healthy checks the child process and its health endpoint.

func (*Process) Render

func (p *Process) Render(ctx context.Context, entry string, props json.RawMessage, sink Sink) error

type RemoteError

type RemoteError struct{ Message string }

RemoteError reports an application render failure returned by the renderer.

func (*RemoteError) Error

func (e *RemoteError) Error() string

type Sink

type Sink interface {
	Head([]byte) error
	Body([]byte) error
}

Sink receives ordered renderer output.

type UnavailableError

type UnavailableError struct{ Err error }

UnavailableError reports renderer process or transport failure.

func (*UnavailableError) Error

func (e *UnavailableError) Error() string

func (*UnavailableError) Unwrap

func (e *UnavailableError) Unwrap() error

Jump to

Keyboard shortcuts

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