Commit Graph

260 Commits

Author SHA1 Message Date
Yaron Schneider d4ad90066e
update sdk version (#416)
Signed-off-by: yaron2 <schneider.yaron@live.com>
2023-06-12 08:04:26 -07:00
hunter007 effc2f0d3c
Add example for dapr grpc proxy mode (#414)
* Add example for dapr grpc proxy mode

Signed-off-by: hunter007 <wentao79@gmail.com>

* Modify README.md

Signed-off-by: hunter007 <wentao79@gmail.com>

---------

Signed-off-by: hunter007 <wentao79@gmail.com>
2023-06-06 12:00:37 +08:00
Hannah Hunter 10b832f741
add cryptography examples (#396)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
2023-06-05 17:42:25 -07:00
Josh van Leeuwen df5bd08997
Add note about Actor State `WithTTL` being feature preview. (#408)
Signed-off-by: joshvanl <me@joshvanl.dev>
2023-05-29 09:59:51 +08:00
Josh van Leeuwen 942dcb8512
Update protos from dapr/dapr master (#409)
Signed-off-by: joshvanl <me@joshvanl.dev>
2023-05-26 10:11:31 -07:00
Alessandro (Ale) Segala 92c23df717
[Crypto] Implement support for high-level crypto APIs (#387)
* Updated generated protos

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Added encrypt method

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Add Decrypt method

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Working on tests

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Added unit tests

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Sync protos

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Updated protos

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* 💄

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

---------

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-05-26 07:58:35 -07:00
hunter007 b14253b0fe
Pass HTTP headers to ServiceInvocationHandler (#405)
* Pass HTTP headers to ServiceInvocationHandler

Signed-off-by: hunter007 <wentao79@gmail.com>

* unit test

Signed-off-by: hunter007 <wentao79@gmail.com>

* gofmt -s

Signed-off-by: hunter007 <wentao79@gmail.com>

* update go.mod

Signed-off-by: hunter007 <wentao79@gmail.com>

* update go.mod

Signed-off-by: hunter007 <wentao79@gmail.com>

---------

Signed-off-by: hunter007 <wentao79@gmail.com>
2023-05-24 23:06:34 -07:00
Pim Merks b2275e7556
Allow setting own gRPC server when calling `NewService` (#400)
* Add `NewServiceWithGrpcServer` to gRPC service

Signed-off-by: pimmerks <pimmerks@users.noreply.github.com>

* Apply suggestion of not creating new variable

Signed-off-by: pimmerks <pimmerks@users.noreply.github.com>

---------

Signed-off-by: pimmerks <pimmerks@users.noreply.github.com>
2023-05-20 08:01:14 -07:00
hunter007 3929306e36
Update go version to 1.19 (#403)
* update go version to 1.19

Signed-off-by: hunter007 <wentao79@gmail.com>

* add timeout for golangci-lint

Signed-off-by: hunter007 <wentao79@gmail.com>

* fix golangci-lint

Signed-off-by: hunter007 <wentao79@gmail.com>

* use revive instead of goliint in .golangci.yml

Signed-off-by: hunter007 <wentao79@gmail.com>

* if-return: redundant if ...; err != nil check, just return error instead.

Signed-off-by: hunter007 <wentao79@gmail.com>

* fix

Signed-off-by: hunter007 <wentao79@gmail.com>

* update golangci-lint from v1.50.1 to v1.52.2

Signed-off-by: hunter007 <wentao79@gmail.com>

---------

Signed-off-by: hunter007 <wentao79@gmail.com>
2023-05-20 07:36:37 -07:00
hunter007 f6dccfd559
Fix env variable GOVER to "1.20" in validate_examples.yaml (#399)
Signed-off-by: hunter007 <wentao79@gmail.com>
2023-05-18 06:03:03 -07:00
hunter007 678b222072
Update protos and client's configuration methods with stable config api (#391)
* Update protos

Signed-off-by: zhaowentao <wentao79@gmail.com>
Signed-off-by: hunter007 <wentao79@gmail.com>

* update client's configuration methods with stable config api

Signed-off-by: hunter007 <wentao79@gmail.com>

* rename alpha1 to rsp

Signed-off-by: hunter007 <wentao79@gmail.com>

* update go.mod

Signed-off-by: hunter007 <wentao79@gmail.com>

* Update proto

Signed-off-by: hunter007 <wentao79@gmail.com>

* Fix document for examples

Signed-off-by: hunter007 <wentao79@gmail.com>

* base64ed data

Signed-off-by: hunter007 <wentao79@gmail.com>

* Revert "base64ed data"

This reverts commit 0f3b82fe45.

Signed-off-by: hunter007 <wentao79@gmail.com>

* validate configuration

Signed-off-by: hunter007 <wentao79@gmail.com>

* update DAPR_REF in workflows to fix examples

Signed-off-by: hunter007 <wentao79@gmail.com>

* update GOVER from 1.18 to 1.20 in validate_examples.yaml because of dapr/dapr/master branch

Signed-off-by: hunter007 <wentao79@gmail.com>

---------

Signed-off-by: zhaowentao <wentao79@gmail.com>
Signed-off-by: hunter007 <wentao79@gmail.com>
2023-05-17 22:40:52 -07:00
dependabot[bot] 6e75626d37
Bump golang.org/x/net from 0.5.0 to 0.7.0 in /examples/configuration (#362)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 12:27:35 +08:00
dependabot[bot] f3b444df6e
Bump golang.org/x/net from 0.5.0 to 0.7.0 in /examples/hello-world (#361)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 12:26:45 +08:00
Hannah Hunter d485c1775c
add some examples - need review (#386)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
2023-04-27 16:02:19 -07:00
Taction 9d3e975bc9
use lock instead of once to create default client (#341)
Signed-off-by: zhangchao <zchao9100@gmail.com>
2023-04-27 15:34:22 -07:00
Josh van Leeuwen d58007df4d
Actor state client `SetWithTTL` (#383)
* Adds context to rest of funcs, so context can always be propagated.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Use separate interface for structs with context funcs

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update proto to include actor state transaction metadata

Signed-off-by: joshvanl <me@joshvanl.dev>

* Adds `SetWithTTL` to actor state store manager

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update actor client to support sending metadata. Supports `ttlInSeconds`

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update actor example to use SetWithTTL with note that it should always
be used

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update go modules

Signed-off-by: joshvanl <me@joshvanl.dev>

* Ignore deprecated use of `actor.Server` in `ActorContainer` interface

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
2023-04-27 15:31:36 -07:00
Shivam Kumar 99dc3e31d5
update config subscribe method (#389)
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
2023-04-27 15:07:16 -07:00
dependabot[bot] 78a1fe63ea
Bump golang.org/x/net from 0.5.0 to 0.7.0 in /examples/pubsub (#372)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 15:24:46 +08:00
Shubham Sharma b48e8ade5b
Add support for bulk publish (#384)
* Initial implementation

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add a response type and more tests

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Change logic and add more tests

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add example

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add docs

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix lint

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* gofumpt

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

---------

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2023-03-31 14:57:57 +08:00
Josh van Leeuwen 0cc2c4ce7a
Create `xxxContext` functions for ones which are missing a caller context. (#358)
* Adds context to rest of funcs, so context can always be propagated.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Adds `//nolint:interfacebloat` to StateManager interface due to new
`xxxContext` methods.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Use separate interface for structs with context funcs

Signed-off-by: joshvanl <me@joshvanl.dev>

* Adds more locks to actor functions

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
2023-03-29 07:40:51 -07:00
jackycsl 8ba232d2a2
[service/http]switch from Gorilla Mux to Chi (#357)
Signed-off-by: Jacky CSL <jcslmu@gmail.com>
2023-03-21 12:11:22 +08:00
Roberto Rojas 3f795a2171
Fixes SDK_VERSION workflow check condition (#369)
Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com>
2023-02-24 15:21:53 -08:00
Joni Collinge 7c5ecee155
Allow setting grpc options on grpc server (#366)
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
2023-02-24 14:43:32 -08:00
Roberto Rojas 6484b1b7f7
updates sdk version to v1.7.0 (#367)
Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com>
2023-02-23 13:26:37 -08:00
Roberto Rojas d02f9524d9
V1.10 Update Protos & Go Modules (#356)
* updates grpc proto for v1.10

Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com>

* updates go mod tidy for v1.10

Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com>

---------

Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com>
2023-02-01 08:35:20 -08:00
longshine cae6fc0130
Return err as nil when replying with DROP status (#349)
Signed-off-by: longshine <longxianghe@gmail.com>

Signed-off-by: longshine <longxianghe@gmail.com>
2023-01-22 16:08:23 -08:00
Sam 4288f414a6
docs: fix link and add periods/spacing (#354)
Signed-off-by: Samantha Coyle <sam@samcoyle.me>

Signed-off-by: Samantha Coyle <sam@samcoyle.me>
2023-01-22 16:07:14 -08:00
Alessandro (Ale) Segala c5377994aa
Various fixes and cleanups (#346)
* Various fixed and cleanups

1. Fixed SDK not compiling and tests failing
2. Increased minimum Go version to 1.18
3. Removed `github.com/pkg/errors` and `go.uber.org/atomic` - replaced with the standard library instead (the old packages have been added to the "depguard" linter)
4. Upgraded all dependencies
5. Upgraded golangci-lint to support Go 1.18+

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Do not wrap error if nil

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Run CI on Go 1.18 and 1.19

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Restore compatibility with Go 1.18

Looks like the newer methods were added in Go 1.19 only

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Should fix validate_examples CI

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Updated (most) deprecated Actions

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fix helm repo

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Determine latest Dapr version in a better way

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fix validate.sh

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-09 10:38:37 -08:00
Alessandro (Ale) Segala 718044ad12
Report SDK version to Dapr as User-Agent (#328)
* Report SDK version to Dapr

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fixed typos

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fixes

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* 💄

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Making the linter happy-maybe

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Update linter to support go:embed comments

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-12-16 11:16:10 -08:00
wXwcoder 014b4d6836
fix #326 Differentiating between actor state key not found vs. unexpected error (#333)
* return the specific error type of the actor state, caused by empty key or unmarshal fail

Signed-off-by: wangxw <996268132@qq.com>

* Update state_async_provider.go

change log level of state load

Signed-off-by: wXwcoder <996268132@qq.com>

Signed-off-by: wangxw <996268132@qq.com>
Signed-off-by: wXwcoder <996268132@qq.com>
2022-11-14 13:19:34 +08:00
Tiago Alves Macambira c2dfec6abf
Add wait() method to block until Sidecar is up. (#329)
* Add wait() method to block until Sidecar is up.

App might depend on sidecar right away. This PR adds a Wait() method to
enable app to wait for sidecar to be up before invoking the first call.

GRPC client creation on Dapr Go SDK is blocking, so waiting for client
readiness  is less of a problem here than on SDKs where client
connection establishment is async.

Closes #287

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Move Wait its own file.

If anything, this will make testing and the change more localized.

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Adding unresponsive TCP and Unix servers and tests

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Remove comments, clean code up

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Remove a bit of code duplication on tests

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Fix Wait and test server setup.

* Multiple state changes can happen for a single GRPC Connection.
  previous code assume a single one and was failing miserably. Fixed.
* The logic for the test server's tear down was lacking. Fixed

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Rename on aux. method

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Add link to gRPC documentation about connectivity semantics

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Fixing lint errors

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

* Fixing more lint errors

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>
2022-11-02 10:21:15 -07:00
Yaron Schneider b465b1fa07
update protos (#327)
Signed-off-by: yaron2 <schneider.yaron@live.com>

Signed-off-by: yaron2 <schneider.yaron@live.com>
2022-10-04 10:58:45 -07:00
HaoTian 7bcbf27f51
chore: remove the binary and add gitignore (#315)
Signed-off-by: 117503445 <t117503445@gmail.com>

Signed-off-by: 117503445 <t117503445@gmail.com>
2022-09-30 20:28:16 -07:00
Alessandro (Ale) Segala cfd74830c9
Expose underlying gRPC client and server objects (#311)
* Expose underlying gRPC client and server objects

Fixes #204

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fixed reported race conditions

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Support for Go 1.17

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-09-30 15:56:05 -07:00
yellow chicks f182441168
feature(apphealth&configuration): add app health check & adapt new configuration API (#323)
* fix/typo: modify state  annotation

Signed-off-by: 1046102779 <seachen@tencent.com>

* feature(apphealth): add app health check

Signed-off-by: 1046102779 <seachen@tencent.com>

* feature(apphealth): add app health check

Signed-off-by: 1046102779 <seachen@tencent.com>

* feature(apphealth): add app health check

Signed-off-by: 1046102779 <seachen@tencent.com>

* feature(apphealth): add app health check

Signed-off-by: 1046102779 <seachen@tencent.com>

* feature(apphealth): add app health check

Signed-off-by: 1046102779 <seachen@tencent.com>

Signed-off-by: 1046102779 <seachen@tencent.com>
2022-09-30 15:19:16 -07:00
mikeb26 c89770a473
Add SaveStateWithETag() convenience function (#321)
In the state API there's an existing DeleteStateWithETag() convenience
function but there does not appear to be an equivalent
SaveStateWithETag(). This commit adds SetStateWithETag() so that
consumers of the SDK don't have to employ the more verbose
SaveBulkState() when they only need to update a singular item.

Client code updating a single item with an etag prior to this commit
looks like:

--
item := &dapr.SetStateItem{
	Etag: &dapr.ETag{
		Value: "deadbeef",
	},
	Key:   "order_1",
	Value: []byte(data),
}

err := client.SaveBulkState(ctx, store, item)
--

Client code after this commit can reduce to:

--
err := client.SaveStateWithEtag(ctx, store, "order_1", []byte(data), "deadbeef")
--

Signed-off-by: Mike Brown <github@torvosoft.com>

Signed-off-by: Mike Brown <github@torvosoft.com>
2022-09-28 09:47:33 -07:00
Chris Gillum c1556a4bf1
Fix panic in actor server when invalid methods encountered (#324)
I was debugging a panic in a local application I was developing and noticed this issue. A validation failure isn't correctly handled as a failure, and we insert a nil value into the map. This value in this map is later dereferenced, resulting in the following panic:

```
http: panic serving 127.0.0.1:45598: runtime error: invalid memory address or nil pointer dereference
goroutine 248 [running]:
net/http.(*conn).serve.func1()
        /home/linuxbrew/.linuxbrew/Cellar/go/1.19.1/libexec/src/net/http/server.go:1850 +0xbf
panic({0x9558a0, 0xe4d7c0})
        /home/linuxbrew/.linuxbrew/Cellar/go/1.19.1/libexec/src/runtime/panic.go:890 +0x262
github.com/dapr/go-sdk/actor/manager.(*DefaultActorContainer).Invoke(0xc0000be810, {0xc000048126?, 0x9?}, {0xc0003fc000, 0x4, 0x200})
        /home/cgillum/go/pkg/mod/github.com/dapr/go-sdk@v1.5.0/actor/manager/container.go:75 +0x299
github.com/dapr/go-sdk/actor/manager.(*DefaultActorManager).InvokeMethod(0xc000112300, {0xc000048115?, 0xc0000a3888?}, {0xc000048126, 0x4}, {0xc0003fc000, 0x4, 0x200})
        /home/cgillum/go/pkg/mod/github.com/dapr/go-sdk@v1.5.0/actor/manager/manager.go:92 +0xb2
github.com/dapr/go-sdk/actor/runtime.(*ActorRunTime).InvokeActorMethod(0xa?, {0xc00004810c?, 0x7f71edd544a0?}, {0xc000048115, 0x9}, {0xc000048126, 0x4}, {0xc0003fc000, 0x4, 0x200})
        /home/cgillum/go/pkg/mod/github.com/dapr/go-sdk@v1.5.0/actor/runtime/actor_runtime.go:75 +0xba
github.com/dapr/go-sdk/service/http.(*Server).registerBaseHandler.func4({0xad7298, 0xc0003b0000}, 0xc0004e4100)
        /home/cgillum/go/pkg/mod/github.com/dapr/go-sdk@v1.5.0/service/http/topic.go:112 +0x1be
net/http.HandlerFunc.ServeHTTP(0xc0004e4000?, {0xad7298?, 0xc0003b0000?}, 0x800?)
        /home/linuxbrew/.linuxbrew/Cellar/go/1.19.1/libexec/src/net/http/server.go:2109 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc000218240, {0xad7298, 0xc0003b0000}, 0xc0003b4600)
        /home/cgillum/go/pkg/mod/github.com/gorilla/mux@v1.8.0/mux.go:210 +0x1cf
net/http.serverHandler.ServeHTTP({0xad62e8?}, {0xad7298, 0xc0003b0000}, 0xc0003b4600)
        /home/linuxbrew/.linuxbrew/Cellar/go/1.19.1/libexec/src/net/http/server.go:2947 +0x30c
net/http.(*conn).serve(0xc0000001e0, {0xad7a00, 0xc00012b380})
        /home/linuxbrew/.linuxbrew/Cellar/go/1.19.1/libexec/src/net/http/server.go:1991 +0x607
created by net/http.(*Server).Serve
        /home/linuxbrew/.linuxbrew/Cellar/go/1.19.1/libexec/src/net/http/server.go:3102 +0x4db
```

The issue appears to be the error handling logic, which I've fixed in this PR.

Signed-off-by: Chris Gillum <cgillum@gmail.com>

Signed-off-by: Chris Gillum <cgillum@gmail.com>
2022-09-20 18:23:44 -07:00
Ceres Cartman 7c38f5a607
fix: client default timeout (#310)
* fix: client default timeout #259

Signed-off-by: Ceres Cheng <chengzhoukun@gmail.com>

* Add documentation for client timeout environment variable

Signed-off-by: Ceres Cheng <chengzhoukun@gmail.com>
2022-08-05 16:58:03 -07:00
yellow chicks c4217cfaf9
optimize: using `go mod init` to upgrade examples (#305)
* fix/typo: modify state  annotation

Signed-off-by: 1046102779 <seachen@tencent.com>

* optimize: upgrade go1.17->go1.18

Signed-off-by: 1046102779 <seachen@tencent.com>

* optimize: upgrade examples

Signed-off-by: 1046102779 <seachen@tencent.com>

* optimize: upgrade examples

Signed-off-by: 1046102779 <seachen@tencent.com>

* optimize: using go mod init to upgrade examples

Signed-off-by: 1046102779 <seachen@tencent.com>
2022-07-22 09:19:50 -07:00
Yaron Schneider 40c5fd5a19
Update dependencies (#302)
* update dependencies

Signed-off-by: yaron2 <schneider.yaron@live.com>

* update dependencies

Signed-off-by: yaron2 <schneider.yaron@live.com>
2022-07-08 06:33:24 -07:00
Yaron Schneider e086ac59a0
change ownerID to lockOwner (#301)
Signed-off-by: yaron2 <schneider.yaron@live.com>
2022-07-06 12:34:38 -07:00
Yaron Schneider 0b65cca826
Add distributed lock api support (#297)
* add distributed lock api support

Signed-off-by: yaron2 <schneider.yaron@live.com>

* go mod tidy for pub/sub

Signed-off-by: yaron2 <schneider.yaron@live.com>

* go mod tidy for state

Signed-off-by: yaron2 <schneider.yaron@live.com>

* go mod tidy for service invocation

Signed-off-by: yaron2 <schneider.yaron@live.com>

* linter

Signed-off-by: yaron2 <schneider.yaron@live.com>

* added unlock tests

Signed-off-by: yaron2 <schneider.yaron@live.com>
2022-06-22 10:37:17 +08:00
yellow chicks a1648db4ab
optimize: grpc methodName & http router (#289)
* fix/typo: modify state  annotation

Signed-off-by: 1046102779 <seachen@tencent.com>

* bugfix&optimize: grpc router bug&http invalid router

Signed-off-by: 1046102779 <seachen@tencent.com>

* bugfix&optimize: grpc router bug&http invalid router

Signed-off-by: 1046102779 <seachen@tencent.com>
2022-06-10 09:50:20 +08:00
yellow chicks d204f691ed
fix/typo: modify state annotation (#283)
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-05-06 08:40:47 -07:00
Josh 24ccf7eb52
chore(client): update func definition to be clearer (#281)
Signed-off-by: Josh Dando <joshdando@Joshs-MacBook-Pro.local>

Co-authored-by: Josh Dando <joshdando@Joshs-MacBook-Pro.local>
2022-04-23 08:52:31 -07:00
Shubham Sharma 9b8d4027a8
Add condition (#267)
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-04-20 20:36:18 +08:00
Shubham Sharma 7a63f3f197
Update fossa workflow's action version and trigger branches (#282)
* Pin fossa-action version

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Update branch triggers

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-04-20 12:27:30 +08:00
yellow chicks 37c6c59fb4
fix(typo): client configuration subscribe (#279)
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-04-19 11:10:16 +08:00
thielepaul 885ee8d326
Expose base grpcclient over client interface (#272)
Signed-off-by: Paul Thiele <thielepaul@gmail.com>
2022-04-14 07:04:24 -07:00
Shubham Sharma 247a506004
Update golangci-lint-action to v3.1.0 (#274)
* Update golangci-lint-action

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Use the correct go version

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-04-08 07:49:43 -07:00