Skip to content

Commit

Permalink
Migrate to indeedeng org (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng authored Jan 5, 2023
1 parent ea295fa commit ace8863
Show file tree
Hide file tree
Showing 49 changed files with 69 additions and 68 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fmt: $(BUILD)/fmt ## run goimports

idl-code-gen: #generate/refresh go clent code for idl, do this after update the idl file
rm -Rf ./gen ; true
openapi-generator generate -i iwf-idl/iwf.yaml -g go -o gen/iwfidl/ -p packageName=iwfidl -p generateInterfaces=true -p isGoSubmodule=false --git-user-id iworkflowio --git-repo-id iwf-idl
openapi-generator generate -i iwf-idl/iwf.yaml -g go -o gen/iwfidl/ -p packageName=iwfidl -p generateInterfaces=true -p isGoSubmodule=false --git-user-id indeedeng --git-repo-id iwf-idl
rm ./gen/iwfidl/go.* ; true

clean: ## Clean binaries and build folder
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# iWF Golang SDK
Golang SDK for [iWF workflow engine](https://github.com/indeedeng/iwf)

See [samples](https://github.com/iworkflowio/iwf-golang-samples) for how to use this SDK.
See [samples](https://github.com/indeedeng/iwf-golang-samples) for how to use this SDK.
# Contribution
See [contribution guide](CONTRIBUTION.md)

Expand Down
2 changes: 1 addition & 1 deletion gen/iwfidl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ go get golang.org/x/net/context
Put the package under your project folder and add the following in import:

```golang
import iwfidl "github.com/iworkflowio/iwf-idl"
import iwfidl "github.com/indeedeng/iwf-idl"
```

To use a proxy, set the environment variable `HTTP_PROXY`:
Expand Down
2 changes: 1 addition & 1 deletion gen/iwfidl/git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ "$git_host" = "" ]; then
fi

if [ "$git_user_id" = "" ]; then
git_user_id="iworkflowio"
git_user_id="indeedeng"
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
fi

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/iworkflowio/iwf-golang-sdk
module github.com/indeedeng/iwf-golang-sdk

go 1.18

Expand Down
6 changes: 3 additions & 3 deletions integ/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package integ

import (
"context"
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/iworkflowio/iwf-golang-sdk/iwf/ptr"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/iwf/ptr"
"github.com/stretchr/testify/assert"
"strconv"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion integ/basic_workflow.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package integ

import "github.com/iworkflowio/iwf-golang-sdk/iwf"
import "github.com/indeedeng/iwf-golang-sdk/iwf"

type basicWorkflow struct{}

Expand Down
4 changes: 2 additions & 2 deletions integ/basic_workflow_state1.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package integ

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
)

type basicWorkflowState1 struct{}
Expand Down
4 changes: 2 additions & 2 deletions integ/basic_workflow_state2.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package integ

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
)

type basicWorkflowState2 struct{}
Expand Down
2 changes: 1 addition & 1 deletion integ/init.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package integ

import (
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/iwf"
)

var registry = iwf.NewRegistry()
Expand Down
2 changes: 1 addition & 1 deletion integ/interstate_workflow.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package integ

import "github.com/iworkflowio/iwf-golang-sdk/iwf"
import "github.com/indeedeng/iwf-golang-sdk/iwf"

type interStateWorkflow struct{}

Expand Down
4 changes: 2 additions & 2 deletions integ/interstate_workflow_state0.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package integ

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
)

type interStateWorkflowState0 struct{}
Expand Down
4 changes: 2 additions & 2 deletions integ/interstate_workflow_state1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package integ

import (
"fmt"
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
)

type interStateWorkflowState1 struct{}
Expand Down
4 changes: 2 additions & 2 deletions integ/interstate_workflow_state2.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package integ

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
)

type interStateWorkflowState2 struct{}
Expand Down
4 changes: 2 additions & 2 deletions integ/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package integ
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
"log"
"net/http"
"os"
Expand Down
5 changes: 3 additions & 2 deletions integ/persistence_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package integ
import (
"context"
"fmt"
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
"github.com/stretchr/testify/assert"
"strconv"
"testing"
Expand Down Expand Up @@ -54,6 +54,7 @@ func TestPersistenceWorkflow(t *testing.T) {
}
assert.Equal(t, expectedSas, sas)

time.Sleep(time.Second * 2) // wait for 2 seconds so that the index is updated
resp, err := client.SearchWorkflow(context.Background(), iwfidl.WorkflowSearchRequest{
Query: fmt.Sprintf("IwfWorkflowType='%v'", iwf.GetDefaultWorkflowType(&persistenceWorkflow{})),
PageSize: iwfidl.PtrInt32(1),
Expand Down
4 changes: 2 additions & 2 deletions integ/persistence_workflow.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package integ

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
)

type persistenceWorkflow struct{}
Expand Down
4 changes: 2 additions & 2 deletions integ/persistence_workflow_state1.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package integ

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
)

type persistenceWorkflowState1 struct{}
Expand Down
4 changes: 2 additions & 2 deletions integ/persistence_workflow_state2.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package integ

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
)

type persistenceWorkflowState2 struct{}
Expand Down
2 changes: 1 addition & 1 deletion integ/signal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package integ

import (
"context"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/iwf"
"github.com/stretchr/testify/assert"
"strconv"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion integ/signal_workflow.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package integ

import "github.com/iworkflowio/iwf-golang-sdk/iwf"
import "github.com/indeedeng/iwf-golang-sdk/iwf"

type signalWorkflow struct{}

Expand Down
4 changes: 2 additions & 2 deletions integ/signal_workflow_state1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package integ

import (
"fmt"
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
)

type signalWorkflowState1 struct{}
Expand Down
2 changes: 1 addition & 1 deletion integ/timer_workflow.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package integ

import "github.com/iworkflowio/iwf-golang-sdk/iwf"
import "github.com/indeedeng/iwf-golang-sdk/iwf"

type timerWorkflow struct{}

Expand Down
4 changes: 2 additions & 2 deletions integ/timer_workflow_state1.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package integ

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion iwf/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package iwf

import (
"context"
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
)

// Client is a full-featured client
Expand Down
4 changes: 2 additions & 2 deletions iwf/client_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package iwf
import (
"context"
"fmt"
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf/ptr"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf/ptr"
)

type clientImpl struct {
Expand Down
2 changes: 1 addition & 1 deletion iwf/command_request.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package iwf

import "github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
import "github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"

type CommandRequest struct {
Commands []Command
Expand Down
2 changes: 1 addition & 1 deletion iwf/command_results.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package iwf

import "github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
import "github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"

type (
CommandResults struct {
Expand Down
2 changes: 1 addition & 1 deletion iwf/communication.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package iwf

import "github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
import "github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"

type Communication interface {
// PublishInterstateChannel publishes a value to an interstate Channel
Expand Down
2 changes: 1 addition & 1 deletion iwf/communication_impl.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package iwf

import "github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
import "github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"

type communicationImpl struct {
interStateChannelNames map[string]bool
Expand Down
2 changes: 1 addition & 1 deletion iwf/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package iwf

import (
"fmt"
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"log"
"net/http"
"runtime/debug"
Expand Down
2 changes: 1 addition & 1 deletion iwf/internal_mapper.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package iwf

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion iwf/object.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package iwf

import "github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
import "github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"

// Object is a representation of EncodedObject
type Object struct {
Expand Down
2 changes: 1 addition & 1 deletion iwf/object_encoder.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package iwf

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
)

type ObjectEncoder interface {
Expand Down
4 changes: 2 additions & 2 deletions iwf/object_encoder_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package iwf

import (
"encoding/json"
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf/ptr"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf/ptr"
)

func GetDefaultObjectEncoder() ObjectEncoder {
Expand Down
2 changes: 1 addition & 1 deletion iwf/persistence.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package iwf

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion iwf/persistence_def.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package iwf

import (
"fmt"
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions iwf/persistence_impl.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package iwf

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/iworkflowio/iwf-golang-sdk/iwf/ptr"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/iwf/ptr"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion iwf/registry.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package iwf

import "github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
import "github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"

type Registry interface {
// AddWorkflow registers a workflow
Expand Down
2 changes: 1 addition & 1 deletion iwf/registry_impl.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package iwf

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
)

type registryImpl struct {
Expand Down
2 changes: 1 addition & 1 deletion iwf/registry_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package iwf

import (
"github.com/iworkflowio/iwf-golang-sdk/gen/iwfidl"
"github.com/indeedeng/iwf-golang-sdk/gen/iwfidl"
"testing"
)

Expand Down
Loading

0 comments on commit ace8863

Please sign in to comment.