Documentation ¶
Index ¶
- func ABIContextFactory(instance types.WasmInstance) types.ABI
- type ABIContext
- func (ctx *ABIContext) GetABIExports() interface{}
- func (ctx *ABIContext) GetABIImports() interface{}
- func (ctx *ABIContext) OnInstanceCreate(instance types.WasmInstance)
- func (ctx *ABIContext) OnInstanceDestroy(instance types.WasmInstance)
- func (ctx *ABIContext) OnInstanceStart(instance types.WasmInstance)
- func (ctx *ABIContext) SetABIImports(imports interface{})
- type DefaultImportsHandler
- func (d *DefaultImportsHandler) GetHttpCallResponseBody() common.IoBuffer
- func (d *DefaultImportsHandler) GetHttpCallResponseHeaders() common.HeaderMap
- func (d *DefaultImportsHandler) HttpCall(reqURL string, header common.HeaderMap, body common.IoBuffer, ...) (int32, proxywasm.WasmResult)
- func (d *DefaultImportsHandler) Log(level proxywasm.LogLevel, msg string) proxywasm.WasmResult
- func (d *DefaultImportsHandler) Wait() proxywasm.Action
- type HeaderMapWrapper
- type HeaderMapWrapperBack
- type IoBufferWrapper
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 ¶
func (d *DefaultImportsHandler) Log(level proxywasm.LogLevel, msg string) proxywasm.WasmResult
override
func (*DefaultImportsHandler) Wait ¶
func (d *DefaultImportsHandler) Wait() proxywasm.Action
override
type HeaderMapWrapper ¶
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 ¶
HeaderMapWrapperBack wraps proxy-wasm-go-host/common.HeaderMap into api.HeaderMap
func (HeaderMapWrapperBack) Clone ¶
func (h HeaderMapWrapperBack) Clone() api.HeaderMap
type IoBufferWrapper ¶
IoBufferWrapper wraps buffer.IoBuffer into proxy-wasm-go-host/common.IoBuffer implement common.IoBuffer
Click to show internal directories.
Click to hide internal directories.