Skip to content

Commit 45577a2

Browse files
Rename: Gear5 (#22)
* replace go json with encoding/json * state locking to avoid collision in reading StreamState maps * rename project * Renaming project with Gear5
1 parent bd163d5 commit 45577a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+206
-206
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
synkit
1+
g5
22
.vscode

LICENCE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Synkit License
1+
Gear5 License
22

33
Version 1.1, 30th June 2023
44

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Synkit
1+
# Gear5
22

3-
Synkit is a new data integration protocol and specification, written in Golang, that aims to provide an alternative to existing solutions such as Airbyte, Meltano, and Singer-io. It focuses on simplicity, performance, and extensibility to enable seamless data integration between various systems and applications.
3+
Gear5 is a new data integration protocol and specification, written in Golang, that aims to provide an alternative to existing solutions such as Airbyte, Meltano, and Singer-io. It focuses on simplicity, performance, and extensibility to enable seamless data integration between various systems and applications.
44

55
## Roadmap
66
- [ ] Postgres
@@ -11,33 +11,33 @@ Synkit is a new data integration protocol and specification, written in Golang,
1111

1212
## Getting Started
1313

14-
To start using Synkit, follow these steps:
14+
To start using Gear5, follow these steps:
1515

16-
1. **Run Synkit**: Run Synkit driver/adapter images directly with config, catalog, and state files.
17-
2. **Explore the Documentation**: Refer to the documentation for detailed information on how to use Protocol Synkit, including connector setup, data source configuration, and integration examples.
16+
1. **Run Gear5**: Run Gear5 driver/adapter images directly with config, catalog, and state files.
17+
2. **Explore the Documentation**: Refer to the documentation for detailed information on how to use Protocol Gear5, including connector setup, data source configuration, and integration examples.
1818

1919
## Contributing
2020

21-
We welcome contributions to Protocol Synkit! If you'd like to contribute, please follow these guidelines:
21+
We welcome contributions to Protocol Gear5! If you'd like to contribute, please follow these guidelines:
2222

2323
1. Fork the repository and create a new branch for your feature or bug fix.
2424

2525
2. Commit your changes with descriptive commit messages.
2626

2727
3. Push your changes to your forked repository.
2828

29-
4. Submit a pull request to the main Synkit repository, clearly describing the changes you've made and their purpose.
29+
4. Submit a pull request to the main Gear5 repository, clearly describing the changes you've made and their purpose.
3030

3131
5. Participate in the code review process, addressing any feedback or suggestions.
3232

3333
## License
3434

35-
Protocol Synkit is open-source and released under a custom Licence. Please check
35+
Protocol Gear5 is open-source and released under a custom Licence. Please check
3636

3737
## Contact
3838

39-
For any questions, feedback, or support related to Synkit, you can reach out to the development team via email at [piyushsingariya@gmail.com](mailto:piyushsingariya@gmail.com).
39+
For any questions, feedback, or support related to Gear5, you can reach out to the development team via email at [piyushsingariya@gmail.com](mailto:piyushsingariya@gmail.com).
4040

4141
## Acknowledgments
4242

43-
We would like to acknowledge the contributions of all individuals and organizations that have helped make Synkit possible. Their feedback, ideas, and suggestions have been invaluable in shaping and improving the protocol.
43+
We would like to acknowledge the contributions of all individuals and organizations that have helped make Gear5 possible. Their feedback, ideas, and suggestions have been invaluable in shaping and improving the protocol.

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ function build_and_run() {
1717
fi
1818
cd $path
1919
go mod tidy
20-
go build -ldflags="-w -s -X constants/constants.version=${GIT_VERSION} -X constants/constants.commitsha=${GIT_COMMITSHA} -X constants/constants.releasechannel=${RELEASE_CHANNEL}" -o synkit main.go
20+
go build -ldflags="-w -s -X constants/constants.version=${GIT_VERSION} -X constants/constants.commitsha=${GIT_COMMITSHA} -X constants/constants.releasechannel=${RELEASE_CHANNEL}" -o g5 main.go
2121

2222
echo "============================== Executing connector: $connector with args [$joined_arguments] =============================="
23-
./synkit $joined_arguments
23+
./g5 $joined_arguments
2424
}
2525

2626
if [ $# -gt 0 ]; then
2727
argument="$1"
2828

2929
# Capture and join remaining arguments
30-
synkit
30+
g5
3131
remaining_arguments=("$@")
3232
joined_arguments=$(
3333
IFS=' '

connector.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package synkit
1+
package gear5
22

33
import (
44
"fmt"
55
"os"
66

7-
"github.com/piyushsingariya/synkit/logger"
8-
protocol "github.com/piyushsingariya/synkit/protocol"
9-
"github.com/piyushsingariya/synkit/safego"
7+
"github.com/gear5sh/gear5/logger"
8+
protocol "github.com/gear5sh/gear5/protocol"
9+
"github.com/gear5sh/gear5/safego"
1010
"github.com/spf13/cobra"
1111
)
1212

drivers/base/bulk_driver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package base
22

33
import (
4-
"github.com/piyushsingariya/synkit/protocol"
5-
"github.com/piyushsingariya/synkit/types"
6-
"github.com/piyushsingariya/synkit/utils"
4+
"github.com/gear5sh/gear5/protocol"
5+
"github.com/gear5sh/gear5/types"
6+
"github.com/gear5sh/gear5/utils"
77
)
88

99
// Pass dest with all fields initialized to handle nil state case

drivers/base/driver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package base
22

33
import (
4-
"github.com/piyushsingariya/synkit/protocol"
5-
"github.com/piyushsingariya/synkit/types"
6-
"github.com/piyushsingariya/synkit/typeutils"
4+
"github.com/gear5sh/gear5/protocol"
5+
"github.com/gear5sh/gear5/types"
6+
"github.com/gear5sh/gear5/typeutils"
77
)
88

99
type Driver struct {

drivers/base/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package base
33
import (
44
"time"
55

6-
"github.com/piyushsingariya/synkit/logger"
7-
"github.com/piyushsingariya/synkit/types"
6+
"github.com/gear5sh/gear5/logger"
7+
"github.com/gear5sh/gear5/types"
88
)
99

1010
type basestream interface {

drivers/google-sheets/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/piyushsingariya/synkit/drivers/google-sheets
1+
module github.com/gear5sh/gear5/drivers/google-sheets
22

33
go 1.22
44

@@ -7,7 +7,7 @@ toolchain go1.22.3
77
require (
88
github.com/goccy/go-json v0.10.2
99
github.com/mozillazg/go-unidecode v0.2.0
10-
github.com/piyushsingariya/synkit v0.0.0-00010101000000-000000000000
10+
github.com/gear5sh/gear5 v0.0.0-00010101000000-000000000000
1111
golang.org/x/oauth2 v0.10.0
1212
gopkg.in/Iwark/spreadsheet.v2 v2.0.0-20220412131121-41eea1483964
1313
)
@@ -46,4 +46,4 @@ require (
4646
sigs.k8s.io/yaml v1.3.0 // indirect
4747
)
4848

49-
replace github.com/piyushsingariya/synkit => ../../
49+
replace github.com/gear5sh/gear5 => ../../

drivers/google-sheets/internal/google_sheets.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/piyushsingariya/synkit/drivers/base"
8-
"github.com/piyushsingariya/synkit/logger"
9-
"github.com/piyushsingariya/synkit/protocol"
10-
"github.com/piyushsingariya/synkit/types"
11-
"github.com/piyushsingariya/synkit/utils"
7+
"github.com/gear5sh/gear5/drivers/base"
8+
"github.com/gear5sh/gear5/logger"
9+
"github.com/gear5sh/gear5/protocol"
10+
"github.com/gear5sh/gear5/types"
11+
"github.com/gear5sh/gear5/utils"
1212
"gopkg.in/Iwark/spreadsheet.v2"
1313
)
1414

drivers/google-sheets/internal/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package driver
33
import (
44
"fmt"
55

6-
"github.com/piyushsingariya/synkit/types"
6+
"github.com/gear5sh/gear5/types"
77
)
88

99
type Config struct {

drivers/google-sheets/internal/utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010

1111
"github.com/goccy/go-json"
1212

13+
"github.com/gear5sh/gear5/logger"
14+
"github.com/gear5sh/gear5/types"
15+
"github.com/gear5sh/gear5/utils"
1316
unidecode "github.com/mozillazg/go-unidecode"
14-
"github.com/piyushsingariya/synkit/logger"
15-
"github.com/piyushsingariya/synkit/types"
16-
"github.com/piyushsingariya/synkit/utils"
1717
"golang.org/x/oauth2"
1818
"golang.org/x/oauth2/google"
1919
"gopkg.in/Iwark/spreadsheet.v2"

drivers/google-sheets/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package main
22

33
import (
4-
"github.com/piyushsingariya/synkit"
5-
driver "github.com/piyushsingariya/synkit/drivers/google-sheets/internal"
4+
"github.com/gear5sh/gear5"
5+
driver "github.com/gear5sh/gear5/drivers/google-sheets/internal"
66
)
77

88
func main() {
99
driver := &driver.GoogleSheets{}
10-
synkit.RegisterDriver(driver)
10+
gear5.RegisterDriver(driver)
1111
}

drivers/hubspot/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
module github.com/piyushsingariya/synkit/drivers/hubspot
1+
module github.com/gear5sh/gear5/drivers/hubspot
22

33
go 1.22
44

55
toolchain go1.22.3
66

77
require (
88
github.com/goccy/go-json v0.10.2
9-
github.com/piyushsingariya/synkit v0.0.0-20230727050722-6795340c7033
9+
github.com/gear5sh/gear5 v0.0.0-20230727050722-6795340c7033
1010
golang.org/x/oauth2 v0.11.0
1111
)
1212

@@ -42,4 +42,4 @@ require (
4242
sigs.k8s.io/yaml v1.3.0 // indirect
4343
)
4444

45-
replace github.com/piyushsingariya/synkit => ../../
45+
replace github.com/gear5sh/gear5 => ../../

drivers/hubspot/internal/base_stream.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import (
1515

1616
"github.com/goccy/go-json"
1717

18-
"github.com/piyushsingariya/synkit/drivers/base"
19-
"github.com/piyushsingariya/synkit/logger"
20-
"github.com/piyushsingariya/synkit/types"
21-
"github.com/piyushsingariya/synkit/typeutils"
22-
"github.com/piyushsingariya/synkit/utils"
18+
"github.com/gear5sh/gear5/drivers/base"
19+
"github.com/gear5sh/gear5/logger"
20+
"github.com/gear5sh/gear5/types"
21+
"github.com/gear5sh/gear5/typeutils"
22+
"github.com/gear5sh/gear5/utils"
2323
)
2424

2525
type Stream struct {

drivers/hubspot/internal/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"time"
66

7-
"github.com/piyushsingariya/synkit/logger"
7+
"github.com/gear5sh/gear5/logger"
88
)
99

1010
type Config struct {

drivers/hubspot/internal/crm_stream.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"net/http"
66
"time"
77

8-
"github.com/piyushsingariya/synkit/drivers/base"
9-
"github.com/piyushsingariya/synkit/logger"
10-
"github.com/piyushsingariya/synkit/safego"
11-
"github.com/piyushsingariya/synkit/types"
12-
"github.com/piyushsingariya/synkit/typeutils"
13-
"github.com/piyushsingariya/synkit/utils"
8+
"github.com/gear5sh/gear5/drivers/base"
9+
"github.com/gear5sh/gear5/logger"
10+
"github.com/gear5sh/gear5/safego"
11+
"github.com/gear5sh/gear5/types"
12+
"github.com/gear5sh/gear5/typeutils"
13+
"github.com/gear5sh/gear5/utils"
1414
)
1515

1616
type CRMSearchStream struct {

drivers/hubspot/internal/hubspot.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import (
55
"io"
66
"net/http"
77

8+
"github.com/gear5sh/gear5/drivers/base"
89
"github.com/goccy/go-json"
9-
"github.com/piyushsingariya/synkit/drivers/base"
1010

11-
"github.com/piyushsingariya/synkit/jsonschema"
12-
"github.com/piyushsingariya/synkit/jsonschema/schema"
13-
"github.com/piyushsingariya/synkit/protocol"
14-
"github.com/piyushsingariya/synkit/types"
15-
"github.com/piyushsingariya/synkit/utils"
11+
"github.com/gear5sh/gear5/jsonschema"
12+
"github.com/gear5sh/gear5/jsonschema/schema"
13+
"github.com/gear5sh/gear5/protocol"
14+
"github.com/gear5sh/gear5/types"
15+
"github.com/gear5sh/gear5/utils"
1616
)
1717

1818
type Hubspot struct {

drivers/hubspot/internal/incremental_stream.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"net/http"
55
"time"
66

7-
"github.com/piyushsingariya/synkit/logger"
8-
"github.com/piyushsingariya/synkit/types"
9-
"github.com/piyushsingariya/synkit/typeutils"
10-
"github.com/piyushsingariya/synkit/utils"
7+
"github.com/gear5sh/gear5/logger"
8+
"github.com/gear5sh/gear5/types"
9+
"github.com/gear5sh/gear5/typeutils"
10+
"github.com/gear5sh/gear5/utils"
1111
)
1212

1313
type IncrementalStream struct {

drivers/hubspot/internal/interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package driver
22

33
import (
4-
"github.com/piyushsingariya/synkit/types"
4+
"github.com/gear5sh/gear5/types"
55
)
66

77
type HubspotStream interface {

drivers/hubspot/internal/utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"reflect"
88
"strings"
99

10-
"github.com/piyushsingariya/synkit/logger"
11-
"github.com/piyushsingariya/synkit/types"
12-
"github.com/piyushsingariya/synkit/utils"
10+
"github.com/gear5sh/gear5/logger"
11+
"github.com/gear5sh/gear5/types"
12+
"github.com/gear5sh/gear5/utils"
1313
"golang.org/x/oauth2"
1414
)
1515

drivers/hubspot/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package main
22

33
import (
4-
"github.com/piyushsingariya/synkit"
5-
driver "github.com/piyushsingariya/synkit/drivers/hubspot/internal"
4+
"github.com/gear5sh/gear5"
5+
driver "github.com/gear5sh/gear5/drivers/hubspot/internal"
66
)
77

88
func main() {
99
driver := &driver.Hubspot{}
10-
synkit.RegisterDriver(driver)
10+
gear5.RegisterDriver(driver)
1111
}

0 commit comments

Comments
 (0)