grpcproxy

package
Version: v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 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.

Source Files

Jump to

Keyboard shortcuts

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