filterchain

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkFilterChain

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

func CreateNetworkFilterChain

func CreateNetworkFilterChain(config model.FilterChain) *NetworkFilterChain

CreateNetworkFilterChain create network filter chain

func (*NetworkFilterChain) Close

func (fc *NetworkFilterChain) Close() error

Close closes the filter chain and all filters in it.

func (*NetworkFilterChain) OnData

func (fc *NetworkFilterChain) OnData(data any) (any, error)

OnData handle dubbo rpc invocation

func (*NetworkFilterChain) OnDecode

func (fc *NetworkFilterChain) OnDecode(data []byte) (any, int, error)

OnDecode decode bytes received from getty listener

func (*NetworkFilterChain) OnEncode

func (fc *NetworkFilterChain) OnEncode(p any) ([]byte, error)

OnEncode encode struct to bytes sent to getty listener

func (*NetworkFilterChain) OnStreamRPC

func (fc *NetworkFilterChain) OnStreamRPC(stream model.RPCStream, info *model.RPCStreamInfo) error

OnStreamRPC handles a streaming RPC call.

func (*NetworkFilterChain) OnTripleData

func (fc *NetworkFilterChain) OnTripleData(ctx context.Context, methodName string, arguments []any) (any, error)

OnTripleData handle triple rpc invocation

func (*NetworkFilterChain) OnUnaryRPC

func (fc *NetworkFilterChain) OnUnaryRPC(ctx context.Context, fullMethod string, req any) (any, error)

OnUnaryRPC handles a unary RPC call.

func (*NetworkFilterChain) ServeHTTP

func (fc *NetworkFilterChain) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handle http request

Jump to

Keyboard shortcuts

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