-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SzProduct using SzAbstractFactory WIP
- Loading branch information
1 parent
e3604a6
commit 1a7e18b
Showing
8 changed files
with
79 additions
and
15 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "@senzing/sz-sdk-nodejs-grpc_examples", | ||
"version": "0.0.1", | ||
"description": "examples for using @senzing/serve-grpc with nodejs", | ||
"main": "index.js", | ||
"scripts": { | ||
"szproduct/getVersion.ts": "tsx szproduct/getVersion.ts", | ||
"grpc_tools_node_protoc/helloworld.ts": "tsx grpc_tools_node_protoc/helloworld.ts" | ||
}, | ||
"keywords": [ | ||
"senzing", | ||
"entity-resolution" | ||
], | ||
"author": "", | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { SzAbstractFactory, SzAbstractFactoryOptions } from '../../dist/@senzing/sz-sdk-nodejs-grpc/szfactorycreator/szFactoryCreator'; | ||
|
||
const szParamFactory = new SzAbstractFactory(`0.0.0.0:8261`); | ||
const szProduct = szParamFactory.createProduct(); | ||
|
||
szProduct.getVersion(). | ||
then((result)=>{ | ||
console.log("RESPONSE:\n\r", result); | ||
}). | ||
catch((err)=>{ | ||
console.error(err); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
func CreateGrpcAbstractFactory(grpcConnection *grpc.ClientConn) (senzing.SzAbstractFactory, error) { | ||
szAbstractFactory := &szabstractfactorygrpc.Szabstractfactory{ | ||
GrpcConnection: grpcConnection, | ||
} | ||
return szAbstractFactory, nil | ||
} | ||
*/ | ||
|
||
export class szAbstractFactoryCreator { | ||
/* | ||
static CreateCoreAbstractFactory() { | ||
} | ||
*/ | ||
static CreateGrpcAbstractFactory() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@senzing/sz-sdk-nodejs-grpc", | ||
"main": "./index.js", | ||
"version": "0.0.2", | ||
"version": "0.0.1", | ||
"author": "[email protected]", | ||
"license": "MIT", | ||
"description": "A node library for handling Senzing SDK gRPC connections.", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters