* 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>
* 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>
* 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>
* 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>
* 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