proxywasm

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: 21 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 {
	// 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) 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 {
	// 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) 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