proxywasm020

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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) DispatchHttpCall

func (d *DefaultImportsHandler) DispatchHttpCall(reqURL string, header common.HeaderMap, body common.IoBuffer,
	trailer common.HeaderMap, timeoutMilliseconds uint32) (uint32, proxywasm.Result)

override

func (*DefaultImportsHandler) GetHttpCallResponseHeaders

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

override

func (*DefaultImportsHandler) GetHttpCallResponseTrailer

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

override

func (*DefaultImportsHandler) GetHttpCalloutResponseBody

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

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