Commit Graph

36 Commits

Author SHA1 Message Date
Mike 5779353f7a
migrate protos (#439)
* remove clean command for protos

Signed-off-by: mikeee <hey@mike.ee>

* delete internal protos

Signed-off-by: mikeee <hey@mike.ee>

* migrate refs to 1.11.1-rc.2

Signed-off-by: mikeee <hey@mike.ee>

* migrate metadata pb import

Signed-off-by: mikeee <hey@mike.ee>

* bump imports (dapr 1.12.0-rc.4)

Signed-off-by: mikeee <hey@mike.ee>

* fix wait test to allow more than one "client"

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
2023-09-26 09:20:08 -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
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
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
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
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
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
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 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
Laurence 6f2ae7df71
fix: config api (#200)
* Fix: Finished Configuration API

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* Fix: add configuration validation

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* Fix: fix validation test

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* Fix: remove validation

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* add ut

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* Fix: comment

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>
2022-04-05 17:43:32 -07:00
Dmitry Shmulevich a0a4a9e70a
allow passage of metadata to state store API (#262)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2022-02-24 09:39:05 +08:00
望哥 69c6adcdb0
upgrade dapr to v1.6.0 (#246)
Signed-off-by: wongoo <wongoo@apache.org>
2022-01-24 19:41:44 -08:00
Dmitry Shmulevich d9be62fa69
chore - update dependencies (#240)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2022-01-20 09:25:39 -08:00
Dmitry Shmulevich b93a185fa4
add TTL to actor timer/reminder requests (#225) 2021-12-08 09:36:48 +08:00
Laurence d9ad49d2a6
Feat: Add Go-sdk Actor Support (#196)
* ftr: init go-sdk action

* fix: finished design of actor-api's invoke feature

* fix: add readme

* fix: lint

* fix: add manager unit test

* fix: add actor state suport

* fix: add comments

* fix: add comment

* fix the change reqeust of pr

* fix: validate example test

* fix: linter

* add actor validation

* add actor validation

* fix: update actor validation init sleep time

* fix: add init time for validate example server

* fix: change actor to the end of test in order not to let reminder bother other test

* fix: validate test

* fix: typo of factory

* fix: add init time

* fix: ut

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Long Dai <long.dai@intel.com>
2021-11-02 14:45:27 -07:00
Phil Kedy de68193d5c
Use proto packages that exist in dapr/dapr instead of generating them locally in the SDK. This enables the ability to embed Dapr and also use the SDK to interact with the Dapr APIs. Also moved go mod to 1.17. (#211) 2021-10-17 11:23:06 +08:00
Yaron Schneider b972d70edc
add support for etag and bulk secret modifications (#135) 2021-01-25 18:37:46 -08:00
Mark Chmarny 0ca0bbebc0
proto update (#116)
* proto update

* grpc updates
2020-12-04 08:46:31 -08:00
Mark Chmarny f324f4d8bb
v0.10.0-rc-1 with few dep updates (#108)
* proto dep update

* v0.10.0-rc-1

* test server closed error cache
2020-11-12 09:08:09 -08:00
Mark Chmarny 58a1c0ad47
fixes pubsub response codes in HTTP (#96) 2020-10-23 13:23:03 -07:00
dependabot[bot] 3ef6e18b79
Bump github.com/golang/protobuf from 1.4.2 to 1.4.3 (#90)
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](https://github.com/golang/protobuf/compare/v1.4.2...v1.4.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-17 04:22:44 -07:00
Mark Chmarny 77ee60225a
genproto upgrade (#77) 2020-09-17 18:47:59 -07:00
dependabot[bot] 2bb431eeed
Bump google.golang.org/grpc from 1.31.0 to 1.32.0 (#76)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.31.0 to 1.32.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.31.0...v1.32.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mark Chmarny <mchmarny@users.noreply.github.com>
2020-09-17 18:42:26 -07:00
Mark Chmarny eddc378eb0
gRPC serving implementation addressing #26 (#27)
* WIP: server

* gRPC server implementaiton

* http serving

* grpc ports as string vs int

* bump tag

* adds ctx, fixes linting errors

* v0.8.2 bump

* fixes serving options

* cleans up cloud events in gttp serving

* v0.8.4 version bump

* uses http method constant

* adds grpc serving tests

* pubsub evnet as bytes

* adds tests, seperate payload between http, grpc

* refactored names, tests

* fixes release names

* fixes versoin number

* http invoke test, grpc invoke params

* makefile updates

* readme updates, fixes grpc to http invocations

* readme updates

* comments, refactored http service

* more serving tests

* more client tests

* test verbocity

* fixes grpc error serializtion error

* adds serving to readme

* code formatting

* adds support for TypeUrl in case of a proto conten

* added binding in http service

* cron in grpc example

* single interface for grpc and http sdks

* normalized serving interfaces across http and grpc

* unit, rest api tests for grpc, html serving

* updated tests

* resolved master conflicts

* changes from @youngbupark review

* overloaded AddTopicEventHandler for ease of use

* updated to go 1.15, dependancies

* updated actions to go 1.15

* service test coverage

* readme and release version updates

* makefile flag options for dapr v0.9

* serving to grpc package for ease of http imp
2020-08-12 13:00:32 -07:00
Mark Chmarny c9110e404a client interface, test client errs 2020-06-22 07:54:32 -07:00
Mark Chmarny f2b25184dc moved proto gen to makefile 2020-06-20 06:04:02 -07:00
Mark Chmarny 71d6a94f70 reconciled merge issues 2020-06-17 07:26:31 -07:00
Mark Chmarny 7b3c706ac2 merged upstream 2020-06-17 07:21:30 -07:00
Mark Chmarny 992a0d43ba sys and text mod upgrades 2020-06-17 07:12:58 -07:00
Mark Chmarny 14f04f2e95 protogen cleanup 2020-06-13 07:43:34 -07:00
Mark Chmarny 7af1e50a17 WIP: testing 2020-06-13 06:57:25 -07:00
Mark Chmarny b310b9061f mod tidy, go version 1.14 2020-06-12 14:38:45 -07:00
Mark Chmarny 08b1729df6 v0.8 upgrade, proto update fixed, readme sync 2020-06-12 14:29:20 -07:00
Mark Chmarny f81cceb04a added bespoke client 2020-05-01 10:34:38 -07:00
yaron2 dae075e0ec add go mod 2019-10-10 22:08:38 -07:00