Documentation ¶
Index ¶
- type CosmosItem
- type StateStore
- func (c *StateStore) Delete(req *state.DeleteRequest) error
- func (c *StateStore) Get(req *state.GetRequest) (*state.GetResponse, error)
- func (c *StateStore) Init(metadata state.Metadata) error
- func (c *StateStore) Multi(request *state.TransactionalStateRequest) error
- func (c *StateStore) Set(req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CosmosItem ¶
type CosmosItem struct { documentdb.Document ID string `json:"id"` Value interface{} `json:"value"` IsBinary bool `json:"isBinary"` PartitionKey string `json:"partitionKey"` }
CosmosItem is a wrapper around a CosmosDB document
type StateStore ¶
type StateStore struct { state.DefaultBulkStore // contains filtered or unexported fields }
StateStore is a CosmosDB state store
func NewCosmosDBStateStore ¶
func NewCosmosDBStateStore(logger logger.Logger) *StateStore
NewCosmosDBStateStore returns a new CosmosDB state store
func (*StateStore) Delete ¶
func (c *StateStore) Delete(req *state.DeleteRequest) error
Delete performs a delete operation
func (*StateStore) Get ¶
func (c *StateStore) Get(req *state.GetRequest) (*state.GetResponse, error)
Get retrieves a CosmosDB item
func (*StateStore) Init ¶
func (c *StateStore) Init(metadata state.Metadata) error
Init does metadata and connection parsing
func (*StateStore) Multi ¶ added in v0.2.0
func (c *StateStore) Multi(request *state.TransactionalStateRequest) error
Multi performs a transactional operation. succeeds only if all operations succeed, and fails if one or more operations fail
func (*StateStore) Set ¶
func (c *StateStore) Set(req *state.SetRequest) error
Set saves a CosmosDB item
Click to show internal directories.
Click to hide internal directories.