grpcproxy

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCProxy

func NewGRPCProxy(cb ProxyCallBack) (*grpc.Server, *http.Server, error)

Types

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