sandboxtypes

package
v0.0.0-...-ab8d13a Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

The sandboxtypes package contains the shared types to communicate between the different sandbox components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	// Error, if non-empty, means we failed to run the binary.
	// It's meant to be user-visible.
	Error string `json:"error,omitempty"`

	ExitCode int    `json:"exitCode"`
	Stdout   []byte `json:"stdout"`
	Stderr   []byte `json:"stderr"`
}

Response is the response from the x/playground/sandbox backend to the x/playground frontend.

The stdout/stderr are base64 encoded which isn't ideal but is good enough for now. Maybe we'll move to protobufs later.

Jump to

Keyboard shortcuts

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