grpcproxy

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MaxCallRecvMsgSize = 1024 * 1024 * 32

Variables

This section is empty.

Functions

func NewGRPCProxy

func NewGRPCProxy(cb ProxyCallBack, healthCheckPath string, cmdFlags common.ConsumerCmdFlags, healthReporter HealthReporter) (*grpc.Server, *http.Server, error)

Types

type HealthReporter

type HealthReporter interface {
	IsHealthy() bool
}

type ProxyCallBack

type ProxyCallBack = func(ctx context.Context, method string, reqBody []byte) ([]byte, metadata.MD, error)

type RawBytesCodec

type RawBytesCodec struct{}

func (RawBytesCodec) Marshal

func (RawBytesCodec) Marshal(v interface{}) ([]byte, error)

func (RawBytesCodec) Name

func (RawBytesCodec) Name() string

func (RawBytesCodec) String

func (RawBytesCodec) String() string

func (RawBytesCodec) Unmarshal

func (RawBytesCodec) Unmarshal(data []byte, v interface{}) error

Directories

Path Synopsis
Package testproto is a reverse proxy.
Package testproto is a reverse proxy.

Jump to

Keyboard shortcuts

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