Documentation ¶
Index ¶
- func Init(stub cached_stub.CachedStubInterface, logLevel ...shim.LoggingLevel) ([]byte, error)
- type LedgerDatastoreImpl
- func (ds LedgerDatastoreImpl) ComputeHash(stub cached_stub.CachedStubInterface, encryptedData []byte) string
- func (ds LedgerDatastoreImpl) Delete(stub cached_stub.CachedStubInterface, dataKey string) error
- func (ds LedgerDatastoreImpl) Get(stub cached_stub.CachedStubInterface, dataKey string) ([]byte, error)
- func (ds LedgerDatastoreImpl) GetDatastoreConnection() datastore.DatastoreConnection
- func (ds LedgerDatastoreImpl) Instantiate(conn datastore.DatastoreConnection) (datastore.DatastoreInterface, error)
- func (ds LedgerDatastoreImpl) IsReady() bool
- func (ds LedgerDatastoreImpl) Put(stub cached_stub.CachedStubInterface, encryptedData []byte) (string, error)
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 ledger package
Types ¶
type LedgerDatastoreImpl ¶
type LedgerDatastoreImpl struct {
// contains filtered or unexported fields
}
Shell of cloudant impl. To be impl in different MR
func (LedgerDatastoreImpl) ComputeHash ¶
func (ds LedgerDatastoreImpl) ComputeHash(stub cached_stub.CachedStubInterface, encryptedData []byte) string
func (LedgerDatastoreImpl) Delete ¶
func (ds LedgerDatastoreImpl) Delete(stub cached_stub.CachedStubInterface, dataKey string) error
func (LedgerDatastoreImpl) Get ¶
func (ds LedgerDatastoreImpl) Get(stub cached_stub.CachedStubInterface, dataKey string) ([]byte, error)
func (LedgerDatastoreImpl) GetDatastoreConnection ¶
func (ds LedgerDatastoreImpl) GetDatastoreConnection() datastore.DatastoreConnection
func (LedgerDatastoreImpl) Instantiate ¶
func (ds LedgerDatastoreImpl) Instantiate(conn datastore.DatastoreConnection) (datastore.DatastoreInterface, error)
func (LedgerDatastoreImpl) IsReady ¶
func (ds LedgerDatastoreImpl) IsReady() bool
func (LedgerDatastoreImpl) Put ¶
func (ds LedgerDatastoreImpl) Put(stub cached_stub.CachedStubInterface, encryptedData []byte) (string, error)
Click to show internal directories.
Click to hide internal directories.