filterchain

package
v0.6.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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) OnData

func (fc NetworkFilterChain) OnData(data interface{}) (interface{}, error)

OnData handle dubbo rpc invocation

func (NetworkFilterChain) OnDecode

func (fc NetworkFilterChain) OnDecode(data []byte) (interface{}, int, error)

OnDecode decode bytes received from getty listener

func (NetworkFilterChain) OnEncode

func (fc NetworkFilterChain) OnEncode(p interface{}) ([]byte, error)

OnEncode encode struct to bytes sent to getty listener

func (*NetworkFilterChain) OnTripleData

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

OnTripleData handle triple rpc invocation

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