proxy

package
v0.2012.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package proxy implements service agnostic gRPC reverse proxy.

This package is somewhat inspired by https://github.com/mwitkow/grpc-proxy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(dialer Dialer) grpc.StreamHandler

Handler returns a gRPC StreamHandler than can be used to proxy requests to the client returned by the proxy dialer.

Types

type Dialer

type Dialer func(ctx context.Context) (*grpc.ClientConn, error)

Dialer should return a gRPC ClientConn that will be used to forward calls to.

Jump to

Keyboard shortcuts

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