grpcproxy

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: 11 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

View Source
const (
	// Kind filter plugin kind
	Kind = constant.GRPCProxyConnectionFilter
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcFilterManager

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

GrpcFilterManager manage gRPC filters, similar to DubboFilterManager

func NewGrpcFilterManager

func NewGrpcFilterManager(fs []*model.GrpcFilter) *GrpcFilterManager

NewGrpcFilterManager create gRPC filter manager

type GrpcProxyConnectionManager

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

GrpcProxyConnectionManager network filter for gRPC proxy, similar to DubboProxyConnectionManager

func CreateGrpcProxyConnectionManager

func CreateGrpcProxyConnectionManager(config *model.GRPCConnectionManagerConfig) *GrpcProxyConnectionManager

CreateGrpcProxyConnectionManager create gRPC proxy connection manager

func (*GrpcProxyConnectionManager) Close

func (gcm *GrpcProxyConnectionManager) Close() error

func (*GrpcProxyConnectionManager) OnStreamRPC

func (gcm *GrpcProxyConnectionManager) OnStreamRPC(stream model.RPCStream, info *model.RPCStreamInfo) error

OnStreamRPC handles a streaming RPC call.

type Plugin

type Plugin struct{}

Plugin gRPC connection manager plugin, similar to dubboproxy plugin

func (*Plugin) Config

func (p *Plugin) Config() any

Config return the config struct

func (*Plugin) CreateFilter

func (p *Plugin) CreateFilter(config any) (filter.NetworkFilter, error)

CreateFilter return the filter instance

func (*Plugin) Kind

func (p *Plugin) Kind() string

Kind returns the unique kind name to represent itself.

Directories

Path Synopsis
filter

Jump to

Keyboard shortcuts

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