dubboproxy

package
v1.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type DubboFilterManager

type DubboFilterManager struct {
	// contains filtered or unexported fields
}

DubboFilterManager manage filters

func NewDubboFilterManager

func NewDubboFilterManager(fs []*model.DubboFilter) *DubboFilterManager

NewDubboFilterManager create filter manager

type DubboProxyConnectionManager

type DubboProxyConnectionManager struct {
	filter.EmptyNetworkFilter
	// contains filtered or unexported fields
}

DubboProxyConnectionManager network filter for dubbo

func CreateDubboProxyConnectionManager

func CreateDubboProxyConnectionManager(config *model.DubboProxyConnectionManagerConfig) *DubboProxyConnectionManager

CreateDubboProxyConnectionManager create dubbo proxy connection manager

func (*DubboProxyConnectionManager) OnData

func (dcm *DubboProxyConnectionManager) OnData(data interface{}) (interface{}, error)

OnData handle dubbo rpc invocation

func (*DubboProxyConnectionManager) OnDecode

func (dcm *DubboProxyConnectionManager) OnDecode(data []byte) (interface{}, int, error)

OnDecode decode bytes to DecodeResult

func (*DubboProxyConnectionManager) OnEncode

func (dcm *DubboProxyConnectionManager) OnEncode(pkg interface{}) ([]byte, error)

OnEncode encode Response to bytes

func (*DubboProxyConnectionManager) OnTripleData

func (dcm *DubboProxyConnectionManager) OnTripleData(ctx context.Context, methodName string, arguments []interface{}) (interface{}, error)

OnTripleData handle triple rpc invocation

type Plugin

type Plugin struct{}

Plugin the dubbo networkfilter plugin

func (*Plugin) Config

func (p *Plugin) Config() interface{}

Config return DubboProxyConnectionManagerConfig

func (*Plugin) CreateFilter

func (p *Plugin) CreateFilter(config interface{}) (filter.NetworkFilter, error)

CreateFilter create dubbo networkfilter

func (*Plugin) Kind

func (p *Plugin) Kind() string

Kind kind

Directories

Path Synopsis
filter

Jump to

Keyboard shortcuts

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