-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initialization factories and update dependencies
Introduced `NewActivity` and `NewWorkflow` functions for initializing activity and workflow factories, improving flexibility. Updated several dependencies, including `golang/protobuf`, `golang/net`, `google.golang.org/grpc`, and Go runtime to version 1.22.7. Simplified SDK config handling and made related code adjustments.
- Loading branch information
Showing
11 changed files
with
428 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
go 1.22.5 | ||
go 1.22.7 | ||
|
||
use ( | ||
./contrib | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package testenv | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/clubpay/ronykit/flow" | ||
"github.com/clubpay/ronykit/kit/utils" | ||
. "github.com/smartystreets/goconvey/convey" | ||
) | ||
|
||
func TestFlow(t *testing.T) { | ||
Convey("Flow", t, func(c C) { | ||
sdk, err := flow.NewSDK( | ||
flow.Config{ | ||
Namespace: "kitTest", | ||
HostPort: "127.0.0.1:7333", | ||
}, | ||
) | ||
c.So(err, ShouldBeNil) | ||
|
||
WFSelect.Init(sdk, "hello") | ||
|
||
}) | ||
} | ||
|
||
var WFSelect = flow.NewWorkflow( | ||
"Select", | ||
func(initArg string) flow.WorkflowFunc[string, string] { | ||
return func(ctx *flow.WorkflowContext[string, string], req string) (*string, error) { | ||
return utils.ValPtr("hi"), nil | ||
} | ||
}, | ||
) |
Oops, something went wrong.