Skip to content

Commit

Permalink
165.dockter.1 (#166)
Browse files Browse the repository at this point in the history
* #165 Update to new sz-sdk-go

* #165 Use staging-v4

* #165 Prepare for versioned release

* #165 Update dependencies

* #165 Update workflows

* #165 Update dependencies

* #165 Update dependencies

* #165 Update dependencies

* #165 Added constructor for gRPC

* #165 Prepare for versioned release

* #165 Disable darwin testing

* #165 Disable darwin testing - 2
  • Loading branch information
docktermj authored May 9, 2024
1 parent 5f08f72 commit cfd9a20
Show file tree
Hide file tree
Showing 18 changed files with 296 additions and 843 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ on: [push]
env:
DYLD_LIBRARY_PATH: /opt/senzing/g2/lib:/opt/senzing/g2/lib/macos
LD_LIBRARY_PATH: /opt/senzing/g2/lib:/opt/senzing/g2/lib/macos
SENZING_TOOLS_DATABASE_URL: 'sqlite3://na:na@/tmp/sqlite/G2C.db'
SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@/tmp/sqlite/G2C.db"
SENZING_TOOLS_ENABLE_ALL: true

permissions:
contents: read

jobs:
go-test-darwin:
name: 'go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}'
name: "go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ['1.21']
go: ["1.21"]
os: [macos-latest]
senzingapi-version: [production-v3]
senzingapi-version: [staging-v4]

steps:
- name: checkout repository
Expand All @@ -37,7 +37,7 @@ jobs:
timeout-minutes: 12

- name: install Senzing API
uses: senzing-factory/github-action-install-senzing-api@v2
uses: senzing-factory/github-action-install-senzing-api@v3
with:
senzingapi-version: ${{ matrix.senzingapi-version }}

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push]
env:
LD_LIBRARY_PATH: /opt/senzing/g2/lib
SENZING_ACCEPT_EULA: I_ACCEPT_THE_SENZING_EULA
SENZING_TOOLS_DATABASE_URL: 'sqlite3://na:na@/tmp/sqlite/G2C.db'
SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@/tmp/sqlite/G2C.db"

permissions:
contents: read
Expand All @@ -16,13 +16,13 @@ jobs:
GO111MODULE: on
LD_LIBRARY_PATH: /opt/senzing/g2/lib/
CGO_ENABLED: 1
name: 'go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}'
name: "go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ['1.21']
go: ["1.21"]
os: [ubuntu-latest]
senzingapi-version: [production-v3]
senzingapi-version: [staging-v4]

services:
servegrpc:
Expand All @@ -44,9 +44,9 @@ jobs:
go-version: ${{ matrix.go }}

- name: install Senzing API
uses: senzing-factory/github-action-install-senzing-api@v2
uses: senzing-factory/github-action-install-senzing-api@v3
with:
senzingapi-version: ${{ matrix.senzingapi-version }}
senzingapi-runtime-version: ${{ matrix.senzingapi-version }}

- name: copy /etc files
run: sudo cp testdata/senzing-license/g2.lic /etc/opt/senzing/g2.lic
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ permissions:

jobs:
go-test-windows:
name: 'go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}'
name: "go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ['1.21']
go: ["1.21"]
os: [windows-latest]
senzingapi-version: [production-v3]
senzingapi-version: [staging-v4]

steps:
- name: checkout repository
Expand All @@ -30,7 +30,7 @@ jobs:
go-version: ${{ matrix.go }}

- name: install Senzing API
uses: senzing-factory/github-action-install-senzing-api@v2
uses: senzing-factory/github-action-install-senzing-api@v3
with:
senzingapi-version: ${{ matrix.senzingapi-version }}

Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

-

## [0.8.0] - 2024-05-09

### Changed in 0.8.0

- Migrated to improved FactoryCreator
- Update dependencies

## [0.7.0] - 2024-03-14

### Changed in 0.7.0
Expand Down
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ the recommendation is not to use it yet.

The Senzing `go-sdk-abstract-factory` provides an
[abstract factory](https://en.wikipedia.org/wiki/Abstract_factory_pattern)
that constructs G2Config, G2Configmgr, G2Diagnostic, G2Engine, and G2Product Senzing objects.
creator that construct a
[SzAbstractFactory](https://github.com/senzing-garage/sz-sdk-go/blob/main/sz/main.go)
Senzing objects.

[![Go Reference](https://pkg.go.dev/badge/github.com/senzing-garage/go-sdk-abstract-factory.svg)](https://pkg.go.dev/github.com/senzing-garage/go-sdk-abstract-factory)
[![Go Report Card](https://goreportcard.com/badge/github.com/senzing-garage/go-sdk-abstract-factory)](https://goreportcard.com/report/github.com/senzing-garage/go-sdk-abstract-factory)
Expand All @@ -35,19 +37,15 @@ that constructs G2Config, G2Configmgr, G2Diagnostic, G2Engine, and G2Product Sen

## Overview

The Senzing `go-sdk-abstract-factory` package creates Senzing objects that each adhere to their respective interfaces:
Depending upon the `szfactorycreator.CreateXxxxAbstractFactory(...)` method called,
one of the following AbstractFactory implementations will be returned:

1. [G2config](https://pkg.go.dev/github.com/senzing-garage/g2-sdk-go/g2api#G2config)
1. [G2configmgr](https://pkg.go.dev/github.com/senzing-garage/g2-sdk-go/g2api#G2configmgr)
1. [G2diagnostic](https://pkg.go.dev/github.com/senzing-garage/g2-sdk-go/g2api#G2diagnostic)
1. [G2engine](https://pkg.go.dev/github.com/senzing-garage/g2-sdk-go/g2api#G2engine)
1. [G2product](https://pkg.go.dev/github.com/senzing-garage/g2-sdk-go/g2api#G2product)

Depending upon the parameters passed to the factory, one of the following implementations will be returned:

1. [g2-sdk-go-base](https://github.com/senzing-garage/g2-sdk-go-base) - for calling Senzing Go SDK APIs natively
1. [g2-sdk-go-grpc](https://github.com/senzing-garage/g2-sdk-go-grpc) - for calling Senzing Go SDK APIs via Senzing gRPC server
1. [g2-sdk-go-mock](https://github.com/senzing-garage/g2-sdk-go-mock) - for unit testing calls to the Senzing Go SDK APIs
1. `CreateCoreAbstractFactory(...)` returns an AbstractFactory from
[sz-sdk-go-core](https://github.com/senzing-garage/sz-sdk-go-core) for calling Senzing Go SDK APIs natively
1. `CreateGrpcAbstractFactory(...)` returns an AbstractFactory from
[sz-sdk-go-grpc](https://github.com/senzing-garage/sz-sdk-go-grpc) for calling Senzing Go SDK APIs via Senzing gRPC server
1. `CreateMockAbstractFactory(...)` returns an AbstractFactory from
[sz-sdk-go-mock](https://github.com/senzing-garage/sz-sdk-go-mock) for unit testing calls to the Senzing Go SDK APIs

## Use

Expand Down
1 change: 0 additions & 1 deletion factory/doc.go

This file was deleted.

Loading

0 comments on commit cfd9a20

Please sign in to comment.