Commit Graph

14 Commits

Author SHA1 Message Date
Alessandro (Ale) Segala 4afb8314b9
Fixed: do not require a Content-Length header (#424)
* Fixed: do not require a Content-Length header

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

* Make getData private

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

---------

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-07-03 10:44:11 -07: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
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
Phil Kedy 40d8a4eabe
Pub/Sub routing support (#227)
Signed-off-by: Phil Kedy <phil.kedy@gmail.com>
2022-01-06 10:19:24 -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
Phil Kedy 8a7a61b443
Decode CloudEvent Data consistently between HTTP and gRPC (#230)
* Decode CloudEvent Data consistently between HTTP and gRPC

Signed-off-by: Phil Kedy <phil.kedy@gmail.com>

* linter issue

Signed-off-by: Phil Kedy <phil.kedy@gmail.com>

* Added parsing media type

Signed-off-by: Phil Kedy <phil.kedy@gmail.com>

* Adding extension json media type handling

Signed-off-by: Phil Kedy <phil.kedy@gmail.com>

* add TTL to actor timer/reminder requests (#225)

Signed-off-by: Phil Kedy <phil.kedy@gmail.com>

* Adding more tests

Signed-off-by: Phil Kedy <phil.kedy@gmail.com>

* Tweak

Signed-off-by: Phil Kedy <phil.kedy@gmail.com>

Co-authored-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-08 21:06:35 -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
Alexsel 624e871870
decode data_base64 cloudEvent for http service (#201)
Co-authored-by: Long Dai <long.dai@intel.com>
2021-09-29 22:44:21 -07:00
Long Dai de5cf935fb
ci: standard linter config (#199)
Signed-off-by: Long <long0dai@foxmail.com>
2021-09-22 11:02:52 -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 433dbb87b1
consistent pubsub event handling codes, retry logic (#70)
* codified pubsub event response code behavior

* consistent pubsub response code. retry logic

* removes nil event data check

* updates comments/tests to v1.0 cloud event
2020-09-10 08:53:46 -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