proxy-wasm-go-sdk

module
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0

README

This project is in its early stage, and the API is likely to change and not stable.

WebAssembly for Proxies (Go SDK) Build License

The Go SDK for Proxy-Wasm, enabling developers to write Proxy-Wasm plugins in Go. This SDK is powered by TinyGo and does not support the official Go compiler.

Getting Started

  • examples directory contains the example codes on top of this SDK.

Requirements

  • TinyGo - This SDK depends on TinyGo and leverages its WASI (WebAssembly System Interface) target. Please follow the official instruction here for installing TinyGo.
  • Envoy - To run compiled examples, you need to have Envoy binary. Please follow the official instruction.

Build and run Examples

# Build all examples.
make build.examples

# Build a specific example.
make build.example name=helloworld

# Run a specific example.
make run name=helloworld

Compatible Envoy builds (tested on CI)

Envoy is the first host side implementation of Proxy-Wasm ABI, and we run end-to-end tests with multiple Envoy versions in order to verify Proxy-Wasm Go SDK works as expected.

proxy-wasm-go-sdk istio/proxyv2 Envoy upstream
main 1.9, 1.10 1.18
v0.3.0 1.9, 1.10 1.18

Contributing

We welcome contributions from the community! See CONTRIBUTING.md for how to contribute to this repository.

Directories

Path Synopsis
examples
helloworld command
http_body command
http_headers command
http_routing command
metrics command
network command
shared_data command
properties module
shared_queue module

Jump to

Keyboard shortcuts

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