proxywasm

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 19 Imported by: 3

Documentation

Index

Constants

View Source
const ProxyWasm = "proxywasm"

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	proxywasm010.DefaultImportsHandler
	// contains filtered or unexported fields
}

func NewFilter

func NewFilter(ctx context.Context, pluginName string, rootContextID int32, factory *FilterConfigFactory) *Filter

func (*Filter) Append

func (f *Filter) Append(ctx context.Context, headers api.HeaderMap, buf buffer.IoBuffer, trailers api.HeaderMap) api.StreamFilterStatus

func (*Filter) GetHttpRequestBody

func (f *Filter) GetHttpRequestBody() common.IoBuffer

func (*Filter) GetHttpRequestHeader

func (f *Filter) GetHttpRequestHeader() common.HeaderMap

func (*Filter) GetHttpRequestTrailer

func (f *Filter) GetHttpRequestTrailer() common.HeaderMap

func (*Filter) GetHttpResponseBody

func (f *Filter) GetHttpResponseBody() common.IoBuffer

func (*Filter) GetHttpResponseHeader

func (f *Filter) GetHttpResponseHeader() common.HeaderMap

func (*Filter) GetHttpResponseTrailer

func (f *Filter) GetHttpResponseTrailer() common.HeaderMap

func (*Filter) GetPluginConfig

func (f *Filter) GetPluginConfig() common.IoBuffer

func (*Filter) GetRootContextID

func (f *Filter) GetRootContextID() int32

func (*Filter) GetVmConfig

func (f *Filter) GetVmConfig() common.IoBuffer

func (*Filter) OnDestroy

func (f *Filter) OnDestroy()

func (*Filter) OnReceive

func (f *Filter) OnReceive(ctx context.Context, headers api.HeaderMap, buf buffer.IoBuffer, trailers api.HeaderMap) api.StreamFilterStatus

func (*Filter) SetReceiveFilterHandler

func (f *Filter) SetReceiveFilterHandler(handler api.StreamReceiverFilterHandler)

func (*Filter) SetSenderFilterHandler

func (f *Filter) SetSenderFilterHandler(handler api.StreamSenderFilterHandler)

type FilterConfigFactory

type FilterConfigFactory struct {
	proxywasm010.DefaultImportsHandler
	// contains filtered or unexported fields
}

func (*FilterConfigFactory) CreateFilterChain

func (f *FilterConfigFactory) CreateFilterChain(context context.Context, callbacks api.StreamFilterChainFactoryCallbacks)

func (*FilterConfigFactory) GetPluginConfig

func (f *FilterConfigFactory) GetPluginConfig() common.IoBuffer

func (*FilterConfigFactory) GetRootContextID

func (f *FilterConfigFactory) GetRootContextID() int32

func (*FilterConfigFactory) GetVmConfig

func (f *FilterConfigFactory) GetVmConfig() common.IoBuffer

func (*FilterConfigFactory) OnConfigUpdate

func (f *FilterConfigFactory) OnConfigUpdate(config v2.WasmPluginConfig)

func (*FilterConfigFactory) OnPluginDestroy

func (f *FilterConfigFactory) OnPluginDestroy(plugin types.WasmPlugin)

func (*FilterConfigFactory) OnPluginStart

func (f *FilterConfigFactory) OnPluginStart(plugin types.WasmPlugin)

Jump to

Keyboard shortcuts

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