Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

165.dockter.1 #166

Merged
merged 12 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/go-test-darwin.yaml
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 Down
8 changes: 4 additions & 4 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 Down
6 changes: 3 additions & 3 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 Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

-

## [0.8.0] - 2024-04-09

### Changed in 0.8.0

- Migrated to improved FactoryCreator

## [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.

260 changes: 0 additions & 260 deletions factory/factory.go

This file was deleted.

3 changes: 0 additions & 3 deletions factory/factory_examples_test.go

This file was deleted.

Loading
Loading