Merge pull request #136 from dapr/requests
Split the requests and responses for input/output bindings
This commit is contained in:
commit
a6e7b3031a
|
|
@ -0,0 +1,12 @@
|
|||
// ------------------------------------------------------------
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
// ------------------------------------------------------------
|
||||
|
||||
package bindings
|
||||
|
||||
// WriteRequest is the object given to an dapr output binding
|
||||
type WriteRequest struct {
|
||||
Data []byte `json:"data"`
|
||||
Metadata map[string]string `json:"metadata"`
|
||||
}
|
||||
|
|
@ -15,12 +15,6 @@ type ReadResponse struct {
|
|||
Metadata map[string]string `json:"metadata"`
|
||||
}
|
||||
|
||||
// WriteRequest is the object given to an dapr output binding
|
||||
type WriteRequest struct {
|
||||
Data []byte `json:"data"`
|
||||
Metadata map[string]string `json:"metadata"`
|
||||
}
|
||||
|
||||
// AppResponse is the object describing the response from user code after a bindings event
|
||||
type AppResponse struct {
|
||||
Data interface{} `json:"data"`
|
||||
|
|
|
|||
Loading…
Reference in New Issue