grpc_proxy_server

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Port int
	// contains filtered or unexported fields
}

func New

func New(config *config.Config, grpcServer *grpc_server.Server, services []service.IServiceServer) (*Server, error)

Function creates gRPC server proxy to process REST HTTP requests on the [port] and proxy them onto gRPC server on [grpcServer] port.

Requests from the [port] will be redirected to the [grpcServer] port.

func (*Server) Run

func (ps *Server) Run() error

Function runs gRPC proxy server on the [port]

Jump to

Keyboard shortcuts

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