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