documentdb

package
v0.0.0-...-e11dbd8 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentDBStorage

type DocumentDBStorage struct {
	Client         *mongo.Client
	ConnectionURL  string
	DatabaseName   string
	CollectionName string
}

func CreateDocumentDBStorage

func CreateDocumentDBStorage(connectionUrl string, databaseName string, entityName string) (*DocumentDBStorage, error)

func (DocumentDBStorage) GetDocument

func (ds DocumentDBStorage) GetDocument(key string) ([]byte, error)

func (DocumentDBStorage) PutDocument

func (ds DocumentDBStorage) PutDocument(key string, data []byte) error

type StoredDocument

type StoredDocument struct {
	ID       string `bson:"_id"`
	Document []byte `bson:"document"`
}

Jump to

Keyboard shortcuts

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