ww

package module
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0, MIT Imports: 16 Imported by: 0

README

Wetware

Godoc Reference Go Report Card tests Matrix white paper

What is Wetware?

Wetware is a portable environment for writing secure, scalable and performant distributed applications. It allows you to run clusters that span across cloud providers, data-center, edge nodes and consumer devices, and provides a set of standard services that developers can use to build applications quickly, similar to a cloud environment.

Check out our landing page at wetware.run, or skim our short white paper to learn more about Wetware's design goals and features.

Getting Started

🚧 Work in Progress

Wetware Users

Is your organization using Wetware? Open a PR to add it to the list!

Blocknative
Blocknative

Contributors

Documentation

Index

Constants

View Source
const (
	Version = "0.1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ww

type Ww[T ~capnp.ClientKind] struct {
	NS     string
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	Client T
}

Ww is the execution context for WebAssembly (WASM) bytecode, allowing it to interact with (1) the local host and (2) the cluster environment.

func (Ww[T]) Exec

func (ww Ww[T]) Exec(ctx context.Context, rom rom.ROM) error

Exec compiles and runs the ww instance's ROM in a WASM runtime. It returns any error produced by the compilation or execution of the ROM.

func (*Ww[T]) String

func (ww *Ww[T]) String() string

String returns the cluster namespace in which the wetware is executing. If ww.NS has been assigned a non-empty string, it returns the string unchanged. Else, it defaults to "ww".

Directories

Path Synopsis
api
Package boot provides utilities for parsing and instantiating boot services
Package boot provides utilities for parsing and instantiating boot services
socket
Package socket implements signed sockets for bootstrap services.
Package socket implements signed sockets for bootstrap services.
cap
bitswap/test
Package test_bitswap is a generated GoMock package.
Package test_bitswap is a generated GoMock package.
csp
Package csp provides primitives for communicating sequential processes
Package csp provides primitives for communicating sequential processes
csp/proc
Package proc provides the WebAssembly host module for Wetware processes
Package proc provides the WebAssembly host module for Wetware processes
host/test
Package test_host is a generated GoMock package.
Package test_host is a generated GoMock package.
internal/bounded
Package bounded implements generic bounded types for validation.
Package bounded implements generic bounded types for validation.
pubsub/test
Package test_pubsub is a generated GoMock package.
Package test_pubsub is a generated GoMock package.
view/test
Package test_view is a generated GoMock package.
Package test_view is a generated GoMock package.
Package cluster exports an asynchronously updated model of the swarm.
Package cluster exports an asynchronously updated model of the swarm.
pulse
Package pulse provides ev cluster-management service based on pubsub.
Package pulse provides ev cluster-management service based on pubsub.
pulse/test
Package test_pulse is a generated GoMock package.
Package test_pulse is a generated GoMock package.
routing/test
Package test_routing is a generated GoMock package.
Package test_routing is a generated GoMock package.
test
Package test_cluster is a generated GoMock package.
Package test_cluster is a generated GoMock package.
cmd
ww
guest
rom
Package test contains mockgen targets from external dependencies.
Package test contains mockgen targets from external dependencies.
libp2p
Package test_libp2p is a generated GoMock package.
Package test_libp2p is a generated GoMock package.
net
Package test_net is a generated GoMock package.
Package test_net is a generated GoMock package.
util
log
log/test
Package test_log is a generated GoMock package.
Package test_log is a generated GoMock package.
stm
Package stm implements software-transactional memory (STM).
Package stm implements software-transactional memory (STM).

Jump to

Keyboard shortcuts

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