grpcproxy

package
v0.2.26 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterGRPCService

type RegisterGRPCService func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error

RegisterGRPCService registers a grpc server to proxy through mux.

type Runnable

type Runnable struct {
	Register       RegisterGRPCService
	FromAddress    string
	ToAddress      string
	AllowedOrigins []string
}

Runnable proxies a grpc service through http.

func (*Runnable) Run

func (s *Runnable) Run(m *runmanager.RunManager)

Run runs the given grpc proxy as a runnable service.

Jump to

Keyboard shortcuts

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