Adding metadata to State Delete and Get requests
This commit is contained in:
parent
9c6f0e9ebf
commit
4ad618f2f4
|
@ -10,6 +10,7 @@ import "time"
|
|||
// GetRequest is the object describing a state fetch request
|
||||
type GetRequest struct {
|
||||
Key string `json:"key"`
|
||||
Metadata map[string]string `json:"metadata"`
|
||||
Options GetStateOption `json:"options,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -22,6 +23,7 @@ type GetStateOption struct {
|
|||
type DeleteRequest struct {
|
||||
Key string `json:"key"`
|
||||
ETag string `json:"etag,omitempty"`
|
||||
Metadata map[string]string `json:"metadata"`
|
||||
Options DeleteStateOption `json:"options,omitempty"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue