proxywasm010

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ABIContextFactory

func ABIContextFactory(instance types.WasmInstance) types.ABI

Types

type ABIContext

type ABIContext struct {
	proxywasm.ABIContext
}

ABIContext is a wrapper for proxywasm-go-host/proxywasm.ABIContext implement types.ABI

func (*ABIContext) GetABIExports

func (ctx *ABIContext) GetABIExports() interface{}

func (*ABIContext) GetABIImports

func (ctx *ABIContext) GetABIImports() interface{}

implement types.ABI

func (*ABIContext) OnInstanceCreate

func (ctx *ABIContext) OnInstanceCreate(instance types.WasmInstance)

implement types.ABIHandler

func (*ABIContext) OnInstanceDestroy

func (ctx *ABIContext) OnInstanceDestroy(instance types.WasmInstance)

func (*ABIContext) OnInstanceStart

func (ctx *ABIContext) OnInstanceStart(instance types.WasmInstance)

func (*ABIContext) SetABIImports

func (ctx *ABIContext) SetABIImports(imports interface{})

type DefaultImportsHandler

type DefaultImportsHandler struct {
	proxywasm.DefaultImportsHandler
	Instance common.WasmInstance
	// contains filtered or unexported fields
}

func (*DefaultImportsHandler) GetHttpCallResponseBody

func (d *DefaultImportsHandler) GetHttpCallResponseBody() common.IoBuffer

override

func (*DefaultImportsHandler) GetHttpCallResponseHeaders

func (d *DefaultImportsHandler) GetHttpCallResponseHeaders() common.HeaderMap

override

func (*DefaultImportsHandler) HttpCall

func (d *DefaultImportsHandler) HttpCall(reqURL string, header common.HeaderMap, body common.IoBuffer,
	trailer common.HeaderMap, timeoutMilliseconds int32) (int32, proxywasm.WasmResult)

override

func (*DefaultImportsHandler) Log

override

func (*DefaultImportsHandler) Wait

override

type HeaderMapWrapper

type HeaderMapWrapper struct {
	api.HeaderMap
}

HeaderMapWrapper wraps api.HeaderMap into proxy-wasm-go-host/common.HeaderMap implement common.HeaderMap

func (HeaderMapWrapper) Clone

func (h HeaderMapWrapper) Clone() common.HeaderMap

type HeaderMapWrapperBack

type HeaderMapWrapperBack struct {
	common.HeaderMap
}

HeaderMapWrapperBack wraps proxy-wasm-go-host/common.HeaderMap into api.HeaderMap

func (HeaderMapWrapperBack) Clone

type IoBufferWrapper

type IoBufferWrapper struct {
	buffer.IoBuffer
}

IoBufferWrapper wraps buffer.IoBuffer into proxy-wasm-go-host/common.IoBuffer implement common.IoBuffer

Jump to

Keyboard shortcuts

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