wasm

package
v2.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Autocomplete

func Autocomplete(buildInfo *core.BuildInfo, cfg *AutoCompleteConfig) ([]string, error)

func AutocompleteWithBuildInfo added in v2.22.0

func AutocompleteWithBuildInfo(buildInfo *core.BuildInfo) func(cfg *AutoCompleteConfig) ([]string, error)

func RunWithBuildInfo added in v2.22.0

func RunWithBuildInfo(buildInfo *core.BuildInfo) func(config *RunConfig, args []string) (*RunResponse, error)

Types

type AutoCompleteConfig

type AutoCompleteConfig struct {
	JWT          string   `js:"jwt"`
	LeftWords    []string `js:"leftWords"`
	SelectedWord string   `js:"selectedWord"`
	RightWords   []string `js:"rightWords"`
}

type ConfigureOutputConfig added in v2.17.0

type ConfigureOutputConfig struct {
	Width int  `js:"width"`
	Color bool `js:"color"`
}

type ConfigureOutputResponse added in v2.17.0

type ConfigureOutputResponse struct {
}

func ConfigureOutput added in v2.17.0

func ConfigureOutput(cfg *ConfigureOutputConfig) (*ConfigureOutputResponse, error)

type RunConfig

type RunConfig struct {
	JWT                   string `js:"jwt"`
	DefaultProjectID      string `js:"defaultProjectID"`
	DefaultOrganizationID string `js:"defaultOrganizationID"`
	APIUrl                string `js:"apiUrl"`
}

type RunResponse

type RunResponse struct {
	Stdout   string `js:"stdout"`
	Stderr   string `js:"stderr"`
	ExitCode int    `js:"exitCode"`
}

func Run

func Run(buildInfo *core.BuildInfo, cfg *RunConfig, args []string) (*RunResponse, error)

type Transport added in v2.28.0

type Transport struct {
}

func (*Transport) RoundTrip added in v2.28.0

func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements the RoundTripper interface using the WHATWG Fetch API.

Jump to

Keyboard shortcuts

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