Skip to content

Commit

Permalink
Merge pull request #26 from Senzing/issue-25.dockter.1
Browse files Browse the repository at this point in the history
Issue 25.dockter.1
  • Loading branch information
docktermj authored Feb 16, 2023
2 parents cc160fc + c527f0a commit da87e79
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

-

## [0.3.3] - 2023-02-16

### Added in 0.3.3

- Add a default Senzing configuration to the SQLite database, `/tmp/sqlite/G2C.db`

## [0.3.2] - 2023-02-16

### Added in 0.3.2

- A test SQLite database, `/tmp/sqlite/G2C.db`
- A test SQLite database to the Docker image, `/tmp/sqlite/G2C.db`

## [0.3.1] - 2023-02-16

Expand Down
11 changes: 5 additions & 6 deletions grpcserver/grpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ type GrpcServerImpl struct {

// Add G2Config service to gRPC server.
func (grpcServer *GrpcServerImpl) enableG2config(ctx context.Context, serviceRegistrar grpc.ServiceRegistrar) {
g2configserver.GetSdkG2config().Init(ctx, grpcServer.SenzingModuleName, grpcServer.SenzingEngineConfigurationJson, grpcServer.SenzingVerboseLogging)
server := &g2configserver.G2ConfigServer{}
server.SetLogLevel(ctx, grpcServer.LogLevel)
g2configserver.GetSdkG2config().Init(ctx, grpcServer.SenzingModuleName, grpcServer.SenzingEngineConfigurationJson, grpcServer.SenzingVerboseLogging)
if grpcServer.Observers != nil {
for _, observer := range grpcServer.Observers {
server.RegisterObserver(ctx, observer)
Expand All @@ -61,9 +61,9 @@ func (grpcServer *GrpcServerImpl) enableG2config(ctx context.Context, serviceReg

// Add G2Configmgr service to gRPC server.
func (grpcServer *GrpcServerImpl) enableG2configmgr(ctx context.Context, serviceRegistrar grpc.ServiceRegistrar) {
g2configmgrserver.GetSdkG2configmgr().Init(ctx, grpcServer.SenzingModuleName, grpcServer.SenzingEngineConfigurationJson, grpcServer.SenzingVerboseLogging)
server := &g2configmgrserver.G2ConfigmgrServer{}
server.SetLogLevel(ctx, grpcServer.LogLevel)
g2configmgrserver.GetSdkG2configmgr().Init(ctx, grpcServer.SenzingModuleName, grpcServer.SenzingEngineConfigurationJson, grpcServer.SenzingVerboseLogging)
if grpcServer.Observers != nil {
for _, observer := range grpcServer.Observers {
server.RegisterObserver(ctx, observer)
Expand All @@ -74,9 +74,9 @@ func (grpcServer *GrpcServerImpl) enableG2configmgr(ctx context.Context, service

// Add G2Diagnostic service to gRPC server.
func (grpcServer *GrpcServerImpl) enableG2diagnostic(ctx context.Context, serviceRegistrar grpc.ServiceRegistrar) {
g2diagnosticserver.GetSdkG2diagnostic().Init(ctx, grpcServer.SenzingModuleName, grpcServer.SenzingEngineConfigurationJson, grpcServer.SenzingVerboseLogging)
server := &g2diagnosticserver.G2DiagnosticServer{}
server.SetLogLevel(ctx, grpcServer.LogLevel)
g2diagnosticserver.GetSdkG2diagnostic().Init(ctx, grpcServer.SenzingModuleName, grpcServer.SenzingEngineConfigurationJson, grpcServer.SenzingVerboseLogging)
if grpcServer.Observers != nil {
for _, observer := range grpcServer.Observers {
server.RegisterObserver(ctx, observer)
Expand All @@ -87,10 +87,9 @@ func (grpcServer *GrpcServerImpl) enableG2diagnostic(ctx context.Context, servic

// Add G2Engine service to gRPC server.
func (grpcServer *GrpcServerImpl) enableG2engine(ctx context.Context, serviceRegistrar grpc.ServiceRegistrar) {
sdkG2engine := g2engineserver.GetSdkG2engine()
sdkG2engine.Init(ctx, grpcServer.SenzingModuleName, grpcServer.SenzingEngineConfigurationJson, grpcServer.SenzingVerboseLogging)
server := &g2engineserver.G2EngineServer{}
server.SetLogLevel(ctx, grpcServer.LogLevel)
g2engineserver.GetSdkG2engine().Init(ctx, grpcServer.SenzingModuleName, grpcServer.SenzingEngineConfigurationJson, grpcServer.SenzingVerboseLogging)
if grpcServer.Observers != nil {
for _, observer := range grpcServer.Observers {
server.RegisterObserver(ctx, observer)
Expand All @@ -101,9 +100,9 @@ func (grpcServer *GrpcServerImpl) enableG2engine(ctx context.Context, serviceReg

// Add G2Product service to gRPC server.
func (grpcServer *GrpcServerImpl) enableG2product(ctx context.Context, serviceRegistrar grpc.ServiceRegistrar) {
g2productserver.GetSdkG2product().Init(ctx, grpcServer.SenzingModuleName, grpcServer.SenzingEngineConfigurationJson, grpcServer.SenzingVerboseLogging)
server := &g2productserver.G2ProductServer{}
server.SetLogLevel(ctx, grpcServer.LogLevel)
g2productserver.GetSdkG2product().Init(ctx, grpcServer.SenzingModuleName, grpcServer.SenzingEngineConfigurationJson, grpcServer.SenzingVerboseLogging)
if grpcServer.Observers != nil {
for _, observer := range grpcServer.Observers {
server.RegisterObserver(ctx, observer)
Expand Down
Binary file modified testdata/sqlite/G2C.db
Binary file not shown.

0 comments on commit da87e79

Please sign in to comment.