Skip to content

Commit

Permalink
Merge pull request #12 from SolaceDev/dev
Browse files Browse the repository at this point in the history
Release v1.3.0
  • Loading branch information
mcardy committed Apr 14, 2023
2 parents 26682d5 + 594d332 commit 4cd3329
Show file tree
Hide file tree
Showing 192 changed files with 20,009 additions and 10,347 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,19 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@v2.1.3
with:
go-version: '1.19'
go-version: '1.20'
- name: Compiles
run: go build ./...

- name: Runs go fmt
if: ${{ success() }}
run: |
OUTPUT=$(go fmt ./... 2>&1)
if [ ! -z "$OUTPUT" ]; then
echo "go fmt failed on the following files:"
echo "$OUTPUT"
exit 1
fi
- name: Runs unit tests
if: ${{ success() }}
run: go test -coverprofile ./unitcoverage.out ./...
Expand All @@ -47,4 +56,5 @@ jobs:
./unitcoverage.out
./test/reports/report.xml
./test/reports/coverage.out
./test/diagnostics.tgz
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# lib/*/include*

test/reports
test/diagnostics.tgz

test/sempclient/action/*
!test/sempclient/action/go.mod
Expand Down
16 changes: 16 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// pubsubplus-go-client
//
// Copyright 2021-2023 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// The following is an internal infrastructure file for building
properties([
buildDiscarder(logRotator(daysToKeepStr: '30', numToKeepStr: '10')),
Expand Down
2 changes: 1 addition & 1 deletion NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pubsubplus-go-client

Copyright 2021-2022 Solace Corporation. All rights reserved.
Copyright 2021-2023 Solace Corporation. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ https://solace.com/support
- The [Solace Developer Portal](https://dev.solace.com)
- Understanding [Solace technology](https://solace.com/products/tech/)

Copyright 2021-2022 Solace Corporation. All rights reserved.
Copyright 2021-2023 Solace Corporation. All rights reserved.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2022 Solace Corporation. All rights reserved.
// Copyright 2021-2023 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
144 changes: 0 additions & 144 deletions docs-templates/generate_documentation.go

This file was deleted.

2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_callbacks.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2022 Solace Corporation. All rights reserved.
// Copyright 2021-2023 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_container.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2022 Solace Corporation. All rights reserved.
// Copyright 2021-2023 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
28 changes: 14 additions & 14 deletions internal/ccsmp/ccsmp_core.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2022 Solace Corporation. All rights reserved.
// Copyright 2021-2023 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -118,7 +118,7 @@ func goEventCallback(sessionP SolClientSessionPt, eventInfoP SolClientSessionEve

// Logging

//LogInfo structure
// LogInfo structure
type LogInfo struct {
Message string
Level SolClientLogLevel
Expand Down Expand Up @@ -480,16 +480,16 @@ func handleCcsmpError(f func() SolClientReturnCode) *SolClientErrorInfoWrapper {
}

func (session *SolClientSession) SolClientModifySessionProperties(properties []string) *SolClientErrorInfoWrapper {
sessionPropsP, sessionPropertiesFreeFunction := ToCArray(properties, true)
defer sessionPropertiesFreeFunction()
solClientErrorInfo := handleCcsmpError(func() SolClientReturnCode {
return C.solClient_session_modifyProperties(session.pointer, sessionPropsP)
})
// If there was an error, return the error
if solClientErrorInfo != nil {
return solClientErrorInfo
}
// If there was no error, return nil
return nil
sessionPropsP, sessionPropertiesFreeFunction := ToCArray(properties, true)
defer sessionPropertiesFreeFunction()

solClientErrorInfo := handleCcsmpError(func() SolClientReturnCode {
return C.solClient_session_modifyProperties(session.pointer, sessionPropsP)
})
// If there was an error, return the error
if solClientErrorInfo != nil {
return solClientErrorInfo
}
// If there was no error, return nil
return nil
}
4 changes: 2 additions & 2 deletions internal/ccsmp/ccsmp_endpoint_prop_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_flow.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2022 Solace Corporation. All rights reserved.
// Copyright 2021-2023 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_flow_event_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_flow_prop_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_generate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2022 Solace Corporation. All rights reserved.
// Copyright 2021-2023 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_global_prop_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_helper.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2022 Solace Corporation. All rights reserved.
// Copyright 2021-2023 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_helper.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2022 Solace Corporation. All rights reserved.
// Copyright 2021-2023 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_log_level_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_message.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2022 Solace Corporation. All rights reserved.
// Copyright 2021-2023 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_return_code_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_rmid.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2022 Solace Corporation. All rights reserved.
// Copyright 2021-2023 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_session_event_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4cd3329

Please sign in to comment.