12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package state
- type SaveStateRequest struct {
- Key string `json:"key"`
- Value string `json:"value"`
- Etag string `json:"etag,omitempty"`
- MetaData map[string]string `json:"metadata,omitempty"`
- Options map[string]string `json:"options,omitempty"`
- }
- type GetStateBulkRequest struct {
- Keys []string `json:"keys"`
- Parallelism int `json:"parallelism,omitempty"`
- }
- type GetStateBulkItem struct {
- Key string `json:"key"`
- Data string `json:"data"`
- Etag string `json:"etag"`
- }
- const (
- TransactionUpsert = "upsert"
- TransactionDelete = "delete"
- )
- type TransactionRequest struct {
- Operations []TransactionOperation `json:"operations"`
- MetaData map[string]string `json:"metadata,omitempty"`
- }
- type TransactionOperation struct {
- Operation string `json:"operation"`
- Request TransactionOperationRequest `json:"request"`
- }
- type TransactionOperationRequest struct {
- Key string `json:"key"`
- Value string `json:"value,omitempty"`
- Etag string `json:"etag,omitempty"`
- MetaData map[string]string `json:"metadata,omitempty"`
- Options map[string]string `json:"options,omitempty"`
- }
|