components-contrib/bindings
Gallardot 294dd75354
feat: kafka subpub and bindings support compression (#3676)
Signed-off-by: Gallardot <gallardot@apache.org>
Co-authored-by: Josh van Leeuwen <me@joshvanl.dev>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2025-05-16 10:45:37 -07:00
..
alicloud Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
apns Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
aws Feature/s3 add tagging to metadata (#3799) 2025-04-29 13:15:06 -07:00
azure Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
cloudflare/queues Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
commercetools Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
cron Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
dubbo Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
gcp Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
graphql Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
http Add baggage header support to http binding (#3723) 2025-04-23 05:33:24 -07:00
huawei/obs Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
influx Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
kafka feat: kafka subpub and bindings support compression (#3676) 2025-05-16 10:45:37 -07:00
kitex Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
kubemq Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
kubernetes Switch to Go 1.21, Updates linter, updates workflows, adds sarama 1.42.1 (#3251) 2023-11-28 18:13:09 -08:00
localstorage Interfaces: Update all component interfaces to implement io.Closer (#3542) 2024-09-19 08:53:22 -07:00
mqtt3 Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
mysql Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
postgres Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
postmark Merge 1.14 into master (#3579) 2024-10-24 16:52:48 -07:00
rabbitmq Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
redis Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
rethinkdb/statechange Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
rocketmq Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
sftp sftp binding component (#3505) 2024-10-25 16:56:14 -07:00
smtp Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
twilio Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
wasm Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -07:00
zeebe Update go -> 1.24.1 & golangci-lint -> 1.64.6 (#3699) 2025-03-12 13:50:32 -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 Merge 1.14 into master (#3579) 2024-10-24 16:52:48 -07:00
metadata.go Define common metadata across components (#1994) 2022-08-25 10:10:53 -07:00
output_binding.go Merge 1.14 into master (#3579) 2024-10-24 16:52:48 -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.