cloudant

package
v0.0.0-...-aeb4a1d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(stub cached_stub.CachedStubInterface, logLevel ...shim.LoggingLevel) ([]byte, error)

Init sets up the cloudant package

Types

type CloudantDatastoreImpl

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

Shell of cloudant impl. To be impl in different MR

func (CloudantDatastoreImpl) ComputeHash

func (ds CloudantDatastoreImpl) ComputeHash(stub cached_stub.CachedStubInterface, encryptedData []byte) string

func (CloudantDatastoreImpl) Delete

func (CloudantDatastoreImpl) Get

func (CloudantDatastoreImpl) GetDatastoreConnection

func (ds CloudantDatastoreImpl) GetDatastoreConnection() datastore.DatastoreConnection

func (CloudantDatastoreImpl) Instantiate

Instantiate initializes the database and connection connectS?tring of cloudant datastore should have the following parameters username - user name password - password database - database name host - complete host url create_database - true | false : if true, it will try to create the database during Instantiate process if the database does not exist

func (CloudantDatastoreImpl) IsReady

func (ds CloudantDatastoreImpl) IsReady() bool

func (CloudantDatastoreImpl) Put

func (ds CloudantDatastoreImpl) Put(stub cached_stub.CachedStubInterface, encryptedData []byte) (string, error)

type DbCloudantData

type DbCloudantData struct {
	Id     string `json:"_id"`
	Rev    string `json:"_rev"`
	Hash   string `json:"hash"`
	Data   string `json:"data"`
	TxID   string `json:"txid"`
	TxTime int64  `json:"txtime"`
}

type DbCloudantDataCreate

type DbCloudantDataCreate struct {
	Id     string `json:"_id"`
	Hash   string `json:"hash"`
	Data   string `json:"data"`
	TxID   string `json:"txid"`
	TxTime int64  `json:"txtime"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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