cosmosdb

package
v0.0.0-...-dfea14c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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"`
}

CosmosItem is a wrapper around a CosmosDB document

type StateStore

type StateStore struct {
	// contains filtered or unexported fields
}

StateStore is a CosmosDB state store

func NewCosmosDBStateStore

func NewCosmosDBStateStore() *StateStore

NewCosmosDBStateStore returns a new CosmosDB state store

func (*StateStore) BulkDelete

func (c *StateStore) BulkDelete(req []state.DeleteRequest) error

BulkDelete performs a bulk delete operation

func (*StateStore) BulkSet

func (c *StateStore) BulkSet(req []state.SetRequest) error

BulkSet performs a bulk set operation

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) Set

func (c *StateStore) Set(req *state.SetRequest) error

Set saves a CosmosDB item

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL