func (this *RpcComponent) Start() component.Component {
	lis, err := net.Listen("tcp", this.GrpcEndpoint)
	if err != nil {
		grpclog.Fatalf("failed %v", err)
	}
	grpcServer := grpc.NewServer()
	rpc.RegisterExecServer(grpcServer, &openconfigServer{TopCmd})
	rpc.RegisterRegisterServer(grpcServer, &registerServer{TopCmd})
	rpc.RegisterConfigServer(grpcServer, &configServer{TopCmd})
	grpcServer.Serve(lis)
	return this
}
// RPC component start method.
RPC component start method.
// RPC component start method .
func (this *RpcComponent) Start() component.Component {
	lis, err := net.Listen("tcp", this.GrpcEndpoint)
	if err != nil {
		grpclog.Fatalf("failed %v", err)
	}
	grpcServer := grpc.NewServer()
	rpc.RegisterExecServer(grpcServer, &openconfigServer{TopCmd})
	rpc.RegisterRegisterServer(grpcServer, &registerServer{TopCmd})
	rpc.RegisterConfigServer(grpcServer, &configServer{TopCmd})
	grpcServer.Serve(lis)
	return this
}
func ( this * RpcComponent ) Start ( ) component . Component { lis , err := net . Listen ( " " , this . GrpcEndpoint ) if err != nil { grpclog . Fatalf ( " " , err ) } grpcServer := grpc . NewServer ( ) rpc . RegisterExecServer ( grpcServer , & openconfigServer { TopCmd } ) rpc . RegisterRegisterServer ( grpcServer , & registerServer { TopCmd } ) rpc . RegisterConfigServer ( grpcServer , & configServer { TopCmd } ) grpcServer . Serve ( lis ) return this }
RPC component start method.
RPC component start method .