Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "grpc", fx.Provide( New, ), fx.Invoke( func( impl *DefaultModelServiceImpl, logger *zap.Logger, grpcCfg config.GRPC, ) { srv := grpc.NewServer() RegisterDefaultModelServiceServer(srv, impl) listener, err := net.Listen("tcp", grpcCfg.HTTP.Addr+":"+grpcCfg.HTTP.Port) if err != nil { logger.Fatal("failed to listen", zap.Error(err)) } err = srv.Serve(listener) }, ), )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.