Commit Graph

12 Commits

Author SHA1 Message Date
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
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
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 078d0cdc40
bugfix/apptoken: missing app token verification codes (#236)
Signed-off-by: 1046102779 <seachen@tencent.com>
2021-12-29 15:42:08 +08:00
Dmitry Shmulevich a38be4e38b
replace license headers (#232)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-14 12:06:12 -08:00
Long Dai de5cf935fb
ci: standard linter config (#199)
Signed-off-by: Long <long0dai@foxmail.com>
2021-09-22 11:02:52 -07:00
Sky/敖小剑 7f6e8c9594
update code according to queryString changed from map to string in proto definetion (#155) 2021-04-08 14:13:54 -07:00
Mark Chmarny b7a5b80a89
handler checks addressing issue #100 (#101)
* handler checks addressing issue #100

* handler check tests
2020-11-03 14:07:40 -08:00
Mark Chmarny e606bbc035
Adds HTTP serving tests (#98)
* options

* service, topic test

* binding, invoke, topic tests
2020-10-28 17:11:17 -07:00
Mark Chmarny 79e0f554b0
new service with existing http mux (#52) 2020-08-18 05:49:38 -07:00
Mark Chmarny d6de57c71a
HTTP serving implementation (#45)
* http service implementation

* http coverage

* common serving interface

* multi pubsub support

* multi-pubsub serving

* ensures unique componennt/topic

* cleaned samples in docs

* cleaned up examples in callback docs

* removes Parallel from callback tests

* multi-pupsub support

* updated tests for empty pubsub data

* cleaned up example client

* header parsing in HTTP per  issue 1894 in dapr

* refactored client binding

* refactored service invoke

* updated client and serving docs

* removed v0.9 from makefile action descr

* renamed based on PR review

* updated names globally
2020-08-17 17:14:55 -07:00