components-contrib/bindings
ItalyPaleAle 7880c77d69 Fixed unit tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-26 00:34:35 +00:00
..
alicloud Upgrade linter and fix linter issues 2022-11-11 13:19:57 -08:00
apns Components' init functions should return interfaces (#1997) 2022-08-25 18:27:45 -07:00
aws Last few fixes 2023-01-10 18:35:29 +00:00
azure Fixed tests 2023-01-23 17:02:02 -08:00
cloudflare/queues Configurable timeouts 2022-12-19 17:46:54 +00:00
commercetools update commercetools to v1.1.0 2022-10-11 14:55:15 -07:00
cron fix flaky tests (#2338) 2022-12-03 13:59:42 -08:00
gcp Upgrade linter and fix linter issues 2022-11-11 13:19:57 -08:00
graphql Components' init functions should return interfaces (#1997) 2022-08-25 18:27:45 -07:00
http add security token header support 2023-01-25 15:03:43 -08:00
huawei/obs Use standardized metadata parser 2022-09-12 18:50:05 -07:00
influx Use standardized metadata parser 2022-09-12 18:50:05 -07:00
kafka feature: add context to lock&pubsub API 2022-12-14 19:37:24 +08:00
kubemq update for gofumpt 2022-11-11 23:41:09 +02:00
kubernetes Go 1.19 support and linter fixes (#1975) 2022-08-18 00:45:23 -07:00
localstorage bindings.localstorage fixes (#2449) 2023-01-18 15:27:22 -08:00
mqtt3 Fixed unit tests 2023-01-26 00:34:35 +00:00
mysql Updated depguard linter config (#2245) 2022-11-03 22:19:21 -07:00
postgres upgrade to v5 of jackc/pgx 2022-10-10 15:08:07 -07:00
postmark Update many libraries again 2022-11-01 16:00:27 -07:00
rabbitmq Misc refactorings 2022-11-17 16:29:29 +00:00
redis Add support for Redis 7 in all Dapr Components (#2228) 2022-12-16 14:12:11 -08:00
rethinkdb/statechange Upgrade linter and fix linter issues 2022-11-11 13:19:57 -08:00
smtp Components' init functions should return interfaces (#1997) 2022-08-25 18:27:45 -07:00
twilio Moved Unquote to utils package 2023-01-10 17:52:38 +00:00
twitter pin latest dapr 2022-12-13 17:10:10 -08:00
zeebe revert zeebe duration type 2022-09-12 18:57:13 -07:00
README.md middleware: changes wasm basic to use waPC (#1833) 2022-09-13 17:12:59 -07:00
bindings.go Components' init functions should return interfaces (#1997) 2022-08-25 18:27:45 -07:00
input_binding.go Go 1.19 support and linter fixes (#1975) 2022-08-18 00:45:23 -07:00
metadata.go Define common metadata across components (#1994) 2022-08-25 10:10:53 -07:00
output_binding.go Go 1.19 support and linter fixes (#1975) 2022-08-18 00:45:23 -07:00
requests.go update license to Apache v2.0 (#1406) 2022-01-04 19:53:31 -08:00
responses.go Added ContentType to pubsub/binding/state request-response (#1376) 2022-01-28 10:17:04 -08:00

README.md

Bindings

Bindings provide a common way to trigger an application with events from external systems, or invoke an external system with optional data payloads. Bindings are great for event-driven, on-demand compute and help reduce boilerplate code.

To get started with bindings visit the How To Guide.

To view all the currently supported bindings visit: Dapr bindings.

For detailed binding specs visit Dapr binding specs.

Implementing a new binding

A compliant binding needs to implement at least one interface, depending on the type of binding (Input, Output, or both):

Input binding implement the InputBinding interface defined in input_binding.go

Output binding implement the OutputBinding interface defined in output_binding.go

An output binding can be used to invoke an external system and also to return data from it. Each output binding can decide which operations it supports. This information is communicated to the caller via the Operations() method.

When creating an Output Binding, a list of OperationKind items needs to be returned. For example, if running a component that takes in a SQL query and returns a result set, the OperationKind can be query.

While components are not restricted to a list of supported operations, it's best to use common ones if the operation kind falls under that operation definition. The list of common operations can be found in requests.go.

After implementing a binding, the specification docs need to be updated via a Pull Request: Dapr docs.