grpc_proxy_server

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 10 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 {
	// contains filtered or unexported fields
}

func New

func New(port uint64) *Server

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) GetHttpHandler added in v0.5.0

func (s *Server) GetHttpHandler() gin.HandlerFunc

func (*Server) RegisterServices added in v0.5.0

func (s *Server) RegisterServices(services []service.IServiceServer) error

Method dials connection to the grpc Server and registers user services.

NOTE. Before this function call, gRPC server should be served.

Jump to

Keyboard shortcuts

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