abi

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package abi is the common interface for all ABI implementations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABI

type ABI interface {
	exec.ImportResolver
	Namer

	Files() []File
	Open(File)
}

ABI is the interface that is provided to a webaseembly module. Instances of this interface will live for the lifetime of webassembly modules.

This is low level intentionally.

type File

type File interface {
	io.Closer
	io.Reader
	io.Writer
	Namer

	// Flush isn't required for all backends, but it is used for some, such as HTTP.
	Flush() error
}

File is the most common denominator for most of what you usefully need out of files to make useful programs.

type FileOpener

type FileOpener interface {
	Open(furl *url.URL, flags int) (File, error)
}

FileOpener opens a given file by URL.

type Namer

type Namer interface {
	Name() string
}

Namer is something that has a name.

Directories

Path Synopsis
Package cwa contains the ABI for CommonWA[1] applications.
Package cwa contains the ABI for CommonWA[1] applications.
Package dagger is the first attempt at an API for webassembly modules to communicate with the outside world.
Package dagger is the first attempt at an API for webassembly modules to communicate with the outside world.
Package wasmgo contains hacks and bindings in order to "mixin" the Go webassembly ABI to another webassembly module.
Package wasmgo contains hacks and bindings in order to "mixin" the Go webassembly ABI to another webassembly module.

Jump to

Keyboard shortcuts

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