grpc

package module
v0.0.0-...-e5acbb5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitGrpcBeforeServingFx = fx.Options(
	fx.Provide(
		InitGrpcBeforeServing,
	),
)

InitGrpcBeforeServingFx : constructor for InitGrpcBeforeServing method.

Functions

func InitGrpcBeforeServing

func InitGrpcBeforeServing(config *config.Config, tracer opentracing.Tracer) (*grpc.Server, net.Listener)

InitGrpcBeforeServing InitGrpcBeforeServing: give the instance of server and listener.

func RegisterGrpcModules

func RegisterGrpcModules(srv *grpc.Server,
	db *gorm.DB,
	config *config.Config,
	grpcClientConnection *grpc.ClientConn)

RegisterGrpcModules Todo : Whenever any new modules will be in goarcc : it must be registered in below method

RegisterGrpcModules: will register the modules/services to the server.

func RunGRPCServer

func RunGRPCServer(lc fx.Lifecycle, server *grpc.Server, listener net.Listener) error

RunGRPCServer runs gRPC service on the given port.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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