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) DispatchHttpCall(reqURL string, header common.HeaderMap, body common.IoBuffer, ...) (uint32, proxywasm.Result)
- func (d *DefaultImportsHandler) GetHttpCallResponseHeaders() common.HeaderMap
- func (d *DefaultImportsHandler) GetHttpCallResponseTrailer() common.HeaderMap
- func (d *DefaultImportsHandler) GetHttpCalloutResponseBody() common.IoBuffer
- func (d *DefaultImportsHandler) Log(level proxywasm.LogLevel, msg string) proxywasm.Result
- 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) 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) 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.