Update input_binding.go (#12)
This commit is contained in:
parent
4d99dd07cd
commit
8dacdab522
|
|
@ -1,6 +1,9 @@
|
||||||
package bindings
|
package bindings
|
||||||
|
|
||||||
|
// InputBinding is the interface to define a binding that triggers on incoming events
|
||||||
type InputBinding interface {
|
type InputBinding interface {
|
||||||
|
// Init passes connection and properties metadata to the binding implementation
|
||||||
Init(metadata Metadata) error
|
Init(metadata Metadata) error
|
||||||
|
// Read is a blocking method that triggers the callback function whenever an event arrives
|
||||||
Read(handler func(*ReadResponse) error) error
|
Read(handler func(*ReadResponse) error) error
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue