Documentation ¶
Index ¶
- type DB
- func (_m *DB) Close() error
- func (_m *DB) DataQuery(ctx context.Context, dbName string, querierUserID string, query []byte) (*types.DataQueryResponseEnvelope, error)
- func (_m *DB) DoesUserExist(userID string) (bool, error)
- func (_m *DB) GetAugmentedBlockHeader(userID string, blockNum uint64) (*types.GetAugmentedBlockHeaderResponseEnvelope, error)
- func (_m *DB) GetBlockHeader(userID string, blockNum uint64) (*types.GetBlockResponseEnvelope, error)
- func (_m *DB) GetCertificate(userID string) (*x509.Certificate, error)
- func (_m *DB) GetClusterStatus(noCerts bool) (*types.GetClusterStatusResponseEnvelope, error)
- func (_m *DB) GetConfig(querierUserID string) (*types.GetConfigResponseEnvelope, error)
- func (_m *DB) GetConfigBlock(querierUserID string, blockNumber uint64) (*types.GetConfigBlockResponseEnvelope, error)
- func (_m *DB) GetDBIndex(dbName string, querierUserID string) (*types.GetDBIndexResponseEnvelope, error)
- func (_m *DB) GetDBStatus(dbName string) (*types.GetDBStatusResponseEnvelope, error)
- func (_m *DB) GetData(dbName string, querierUserID string, key string) (*types.GetDataResponseEnvelope, error)
- func (_m *DB) GetDataProof(userID string, blockNum uint64, dbname string, key string, deleted bool) (*types.GetDataProofResponseEnvelope, error)
- func (_m *DB) GetDataRange(dbName string, querierUserID string, startKey string, endKey string, ...) (*types.GetDataRangeResponseEnvelope, error)
- func (_m *DB) GetDeletedValues(userID string, dbname string, key string) (*types.GetHistoricalDataResponseEnvelope, error)
- func (_m *DB) GetLedgerPath(userID string, start uint64, end uint64) (*types.GetLedgerPathResponseEnvelope, error)
- func (_m *DB) GetMostRecentValueAtOrBelow(userID string, dbName string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)
- func (_m *DB) GetNextValues(userID string, dbname string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)
- func (_m *DB) GetNodeConfig(nodeID string) (*types.GetNodeConfigResponseEnvelope, error)
- func (_m *DB) GetPreviousValues(userID string, dbname string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)
- func (_m *DB) GetReaders(userID string, dbName string, key string) (*types.GetDataReadersResponseEnvelope, error)
- func (_m *DB) GetTx(userID string, blockNum uint64, txIdx uint64) (*types.GetTxResponseEnvelope, error)
- func (_m *DB) GetTxIDsSubmittedByUser(querierUserID string, targetUserID string) (*types.GetTxIDsSubmittedByResponseEnvelope, error)
- func (_m *DB) GetTxProof(userID string, blockNum uint64, txIdx uint64) (*types.GetTxProofResponseEnvelope, error)
- func (_m *DB) GetTxReceipt(userId string, txID string) (*types.TxReceiptResponseEnvelope, error)
- func (_m *DB) GetUser(querierUserID string, targetUserID string) (*types.GetUserResponseEnvelope, error)
- func (_m *DB) GetValueAt(userID string, dbName string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)
- func (_m *DB) GetValues(userID string, dbName string, key string) (*types.GetHistoricalDataResponseEnvelope, error)
- func (_m *DB) GetValuesDeletedByUser(querierUserID string, targetUserID string) (*types.GetDataProvenanceResponseEnvelope, error)
- func (_m *DB) GetValuesReadByUser(querierUserID string, targetUserID string) (*types.GetDataProvenanceResponseEnvelope, error)
- func (_m *DB) GetValuesWrittenByUser(querierUserID string, targetUserID string) (*types.GetDataProvenanceResponseEnvelope, error)
- func (_m *DB) GetWriters(userID string, dbName string, key string) (*types.GetDataWritersResponseEnvelope, error)
- func (_m *DB) Height() (uint64, error)
- func (_m *DB) IsDBExists(name string) bool
- func (_m *DB) IsLeader() *errors.NotLeaderError
- func (_m *DB) LedgerHeight() (uint64, error)
- func (_m *DB) SubmitTransaction(tx interface{}, timeout time.Duration) (*types.TxReceiptResponseEnvelope, error)
- type TxProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB is an autogenerated mock type for the DB type
func (*DB) DataQuery ¶
func (_m *DB) DataQuery(ctx context.Context, dbName string, querierUserID string, query []byte) (*types.DataQueryResponseEnvelope, error)
DataQuery provides a mock function with given fields: ctx, dbName, querierUserID, query
func (*DB) DoesUserExist ¶
DoesUserExist provides a mock function with given fields: userID
func (*DB) GetAugmentedBlockHeader ¶
func (_m *DB) GetAugmentedBlockHeader(userID string, blockNum uint64) (*types.GetAugmentedBlockHeaderResponseEnvelope, error)
GetAugmentedBlockHeader provides a mock function with given fields: userID, blockNum
func (*DB) GetBlockHeader ¶
func (_m *DB) GetBlockHeader(userID string, blockNum uint64) (*types.GetBlockResponseEnvelope, error)
GetBlockHeader provides a mock function with given fields: userID, blockNum
func (*DB) GetCertificate ¶
func (_m *DB) GetCertificate(userID string) (*x509.Certificate, error)
GetCertificate provides a mock function with given fields: userID
func (*DB) GetClusterStatus ¶
func (_m *DB) GetClusterStatus(noCerts bool) (*types.GetClusterStatusResponseEnvelope, error)
GetClusterStatus provides a mock function with given fields: noCerts
func (*DB) GetConfig ¶
func (_m *DB) GetConfig(querierUserID string) (*types.GetConfigResponseEnvelope, error)
GetConfig provides a mock function with given fields: querierUserID
func (*DB) GetConfigBlock ¶
func (_m *DB) GetConfigBlock(querierUserID string, blockNumber uint64) (*types.GetConfigBlockResponseEnvelope, error)
GetConfigBlock provides a mock function with given fields: querierUserID, blockNumber
func (*DB) GetDBIndex ¶ added in v0.2.2
func (_m *DB) GetDBIndex(dbName string, querierUserID string) (*types.GetDBIndexResponseEnvelope, error)
GetDBIndex provides a mock function with given fields: dbName, querierUserID
func (*DB) GetDBStatus ¶
func (_m *DB) GetDBStatus(dbName string) (*types.GetDBStatusResponseEnvelope, error)
GetDBStatus provides a mock function with given fields: dbName
func (*DB) GetData ¶
func (_m *DB) GetData(dbName string, querierUserID string, key string) (*types.GetDataResponseEnvelope, error)
GetData provides a mock function with given fields: dbName, querierUserID, key
func (*DB) GetDataProof ¶
func (_m *DB) GetDataProof(userID string, blockNum uint64, dbname string, key string, deleted bool) (*types.GetDataProofResponseEnvelope, error)
GetDataProof provides a mock function with given fields: userID, blockNum, dbname, key, deleted
func (*DB) GetDataRange ¶ added in v0.2.4
func (_m *DB) GetDataRange(dbName string, querierUserID string, startKey string, endKey string, limit uint64) (*types.GetDataRangeResponseEnvelope, error)
GetDataRange provides a mock function with given fields: dbName, querierUserID, startKey, endKey, limit
func (*DB) GetDeletedValues ¶
func (_m *DB) GetDeletedValues(userID string, dbname string, key string) (*types.GetHistoricalDataResponseEnvelope, error)
GetDeletedValues provides a mock function with given fields: userID, dbname, key
func (*DB) GetLedgerPath ¶
func (_m *DB) GetLedgerPath(userID string, start uint64, end uint64) (*types.GetLedgerPathResponseEnvelope, error)
GetLedgerPath provides a mock function with given fields: userID, start, end
func (*DB) GetMostRecentValueAtOrBelow ¶
func (_m *DB) GetMostRecentValueAtOrBelow(userID string, dbName string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)
GetMostRecentValueAtOrBelow provides a mock function with given fields: userID, dbName, key, version
func (*DB) GetNextValues ¶
func (_m *DB) GetNextValues(userID string, dbname string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)
GetNextValues provides a mock function with given fields: userID, dbname, key, version
func (*DB) GetNodeConfig ¶
func (_m *DB) GetNodeConfig(nodeID string) (*types.GetNodeConfigResponseEnvelope, error)
GetNodeConfig provides a mock function with given fields: nodeID
func (*DB) GetPreviousValues ¶
func (_m *DB) GetPreviousValues(userID string, dbname string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)
GetPreviousValues provides a mock function with given fields: userID, dbname, key, version
func (*DB) GetReaders ¶
func (_m *DB) GetReaders(userID string, dbName string, key string) (*types.GetDataReadersResponseEnvelope, error)
GetReaders provides a mock function with given fields: userID, dbName, key
func (*DB) GetTx ¶ added in v0.2.8
func (_m *DB) GetTx(userID string, blockNum uint64, txIdx uint64) (*types.GetTxResponseEnvelope, error)
GetTx provides a mock function with given fields: userID, blockNum, txIdx
func (*DB) GetTxIDsSubmittedByUser ¶
func (_m *DB) GetTxIDsSubmittedByUser(querierUserID string, targetUserID string) (*types.GetTxIDsSubmittedByResponseEnvelope, error)
GetTxIDsSubmittedByUser provides a mock function with given fields: querierUserID, targetUserID
func (*DB) GetTxProof ¶
func (_m *DB) GetTxProof(userID string, blockNum uint64, txIdx uint64) (*types.GetTxProofResponseEnvelope, error)
GetTxProof provides a mock function with given fields: userID, blockNum, txIdx
func (*DB) GetTxReceipt ¶
GetTxReceipt provides a mock function with given fields: userId, txID
func (*DB) GetUser ¶
func (_m *DB) GetUser(querierUserID string, targetUserID string) (*types.GetUserResponseEnvelope, error)
GetUser provides a mock function with given fields: querierUserID, targetUserID
func (*DB) GetValueAt ¶
func (_m *DB) GetValueAt(userID string, dbName string, key string, version *types.Version) (*types.GetHistoricalDataResponseEnvelope, error)
GetValueAt provides a mock function with given fields: userID, dbName, key, version
func (*DB) GetValues ¶
func (_m *DB) GetValues(userID string, dbName string, key string) (*types.GetHistoricalDataResponseEnvelope, error)
GetValues provides a mock function with given fields: userID, dbName, key
func (*DB) GetValuesDeletedByUser ¶
func (_m *DB) GetValuesDeletedByUser(querierUserID string, targetUserID string) (*types.GetDataProvenanceResponseEnvelope, error)
GetValuesDeletedByUser provides a mock function with given fields: querierUserID, targetUserID
func (*DB) GetValuesReadByUser ¶
func (_m *DB) GetValuesReadByUser(querierUserID string, targetUserID string) (*types.GetDataProvenanceResponseEnvelope, error)
GetValuesReadByUser provides a mock function with given fields: querierUserID, targetUserID
func (*DB) GetValuesWrittenByUser ¶
func (_m *DB) GetValuesWrittenByUser(querierUserID string, targetUserID string) (*types.GetDataProvenanceResponseEnvelope, error)
GetValuesWrittenByUser provides a mock function with given fields: querierUserID, targetUserID
func (*DB) GetWriters ¶
func (_m *DB) GetWriters(userID string, dbName string, key string) (*types.GetDataWritersResponseEnvelope, error)
GetWriters provides a mock function with given fields: userID, dbName, key
func (*DB) IsDBExists ¶
IsDBExists provides a mock function with given fields: name
func (*DB) IsLeader ¶
func (_m *DB) IsLeader() *errors.NotLeaderError
IsLeader provides a mock function with given fields:
func (*DB) LedgerHeight ¶
LedgerHeight provides a mock function with given fields:
func (*DB) SubmitTransaction ¶
func (_m *DB) SubmitTransaction(tx interface{}, timeout time.Duration) (*types.TxReceiptResponseEnvelope, error)
SubmitTransaction provides a mock function with given fields: tx, timeout
type TxProcessor ¶
TxProcessor is an autogenerated mock type for the TxProcessor type
func (*TxProcessor) Close ¶
func (_m *TxProcessor) Close() error
Close provides a mock function with given fields:
func (*TxProcessor) ClusterStatus ¶
func (_m *TxProcessor) ClusterStatus() (string, []string)
ClusterStatus provides a mock function with given fields:
func (*TxProcessor) IsLeader ¶
func (_m *TxProcessor) IsLeader() *errors.NotLeaderError
IsLeader provides a mock function with given fields:
func (*TxProcessor) SubmitTransaction ¶
func (_m *TxProcessor) SubmitTransaction(tx interface{}, timeout time.Duration) (*types.TxReceiptResponse, error)
SubmitTransaction provides a mock function with given fields: tx, timeout