Documentation ¶
Index ¶
- func IsIncluded(expected *gabs.Container, resulted *gabs.Container) bool
- type InMemoryStorage
- func (e *InMemoryStorage) AddRecord(storageHandle int, recordType string, recordId string, recordValue []byte, ...) (int, error)
- func (e *InMemoryStorage) AddRecordTags(storageHandle int, recordType string, recordId string, tagsJson string) (int, error)
- func (e *InMemoryStorage) Close(storageHandle int) error
- func (e *InMemoryStorage) Create(storageName string, storageConfig string, credentialsJson string, ...) (int, error)
- func (e *InMemoryStorage) Delete(storageName string, storageConfig string, credentialsJson string) (int, error)
- func (e *InMemoryStorage) DeleteRecord(storageHandle int, recordType string, recordId string) (int, error)
- func (e *InMemoryStorage) DeleteRecordTags(storageHandle int, recordType string, recordId string, tagsJson string) (int, error)
- func (e *InMemoryStorage) FetchSearchNext(storageHandle int, searchHandle int) (int, int, error)
- func (e *InMemoryStorage) FreeRecord(storageHandle int, recordHandle int) error
- func (e *InMemoryStorage) FreeSearch(storageHandle int, searchHandle int) error
- func (e *InMemoryStorage) FreeStorageMetadata(storageHandle int, metadataHandle int) error
- func (e *InMemoryStorage) GetRecordHandle(storageHandle int, recordType string, recordId string, optionsJson string) (int, int, error)
- func (e *InMemoryStorage) GetRecordId(storageHandle int, recordHandle int) (unsafe.Pointer, int, error)
- func (e *InMemoryStorage) GetRecordTags(storageHandle int, recordHandle int) (unsafe.Pointer, int, error)
- func (e *InMemoryStorage) GetRecordType(storageHandle int, recordHandle int) (unsafe.Pointer, int, error)
- func (e *InMemoryStorage) GetRecordValue(storageHandle int, recordHandle int) (wallet.RecordValue, int, error)
- func (e *InMemoryStorage) GetSearchTotalCount(storageHandle int, searchHandle int) (int, int, error)
- func (e *InMemoryStorage) GetStorageMetadata(storageHandle int) (unsafe.Pointer, int, int, error)
- func (e *InMemoryStorage) Open(storageName string, storageConfig string, credentialsJson string) (int, int, error)
- func (e *InMemoryStorage) OpenSearch(storageHandle int, recordType string, queryJson string, optionsJson string) (int, int, error)
- func (e *InMemoryStorage) OpenSearchAll(storageHandle int) (int, int, error)
- func (e *InMemoryStorage) SetStorageMetadata(storageHandle int, metadata string) (int, error)
- func (e *InMemoryStorage) UpdateRecordTags(storageHandle int, recordType string, recordId string, tagsJson string) (int, error)
- func (e *InMemoryStorage) UpdateRecordValue(storageHandle int, recordType string, recordId string, recordValue []byte) (int, error)
- type Metadata
- type StorageRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIncluded ¶
func IsIncluded(expected *gabs.Container, resulted *gabs.Container) bool
Types ¶
type InMemoryStorage ¶
type InMemoryStorage struct { MetadataHandles cmap.ConcurrentMap // Stored metadata of correspondent wallet. MetadataCounter indyUtils.Counter StoredRecords []StorageRecord // Stored wallet records StorageHandles cmap.ConcurrentMap // Storage handles StorageHandlesCounter indyUtils.Counter SearchHandles cmap.ConcurrentMap // Search handles SearchHandlesName cmap.ConcurrentMap SearchHandlesValue cmap.ConcurrentMap SearchHandlesType cmap.ConcurrentMap SearchHandlesTags cmap.ConcurrentMap SearchHandlesIterator cmap.ConcurrentMap SearchHandleCounter indyUtils.Counter }
func NewInMemoryStorage ¶
func NewInMemoryStorage() *InMemoryStorage
func (*InMemoryStorage) AddRecordTags ¶
func (*InMemoryStorage) Close ¶
func (e *InMemoryStorage) Close(storageHandle int) error
func (*InMemoryStorage) DeleteRecord ¶
func (*InMemoryStorage) DeleteRecordTags ¶
func (*InMemoryStorage) FetchSearchNext ¶
func (*InMemoryStorage) FreeRecord ¶
func (e *InMemoryStorage) FreeRecord(storageHandle int, recordHandle int) error
func (*InMemoryStorage) FreeSearch ¶
func (e *InMemoryStorage) FreeSearch(storageHandle int, searchHandle int) error
func (*InMemoryStorage) FreeStorageMetadata ¶
func (e *InMemoryStorage) FreeStorageMetadata(storageHandle int, metadataHandle int) error
func (*InMemoryStorage) GetRecordHandle ¶
func (*InMemoryStorage) GetRecordId ¶
func (*InMemoryStorage) GetRecordTags ¶
func (*InMemoryStorage) GetRecordType ¶
func (*InMemoryStorage) GetRecordValue ¶
func (e *InMemoryStorage) GetRecordValue(storageHandle int, recordHandle int) (wallet.RecordValue, int, error)
func (*InMemoryStorage) GetSearchTotalCount ¶
func (*InMemoryStorage) GetStorageMetadata ¶
func (*InMemoryStorage) OpenSearch ¶
func (*InMemoryStorage) OpenSearchAll ¶
func (e *InMemoryStorage) OpenSearchAll(storageHandle int) (int, int, error)
func (*InMemoryStorage) SetStorageMetadata ¶
func (e *InMemoryStorage) SetStorageMetadata(storageHandle int, metadata string) (int, error)
func (*InMemoryStorage) UpdateRecordTags ¶
func (*InMemoryStorage) UpdateRecordValue ¶
Click to show internal directories.
Click to hide internal directories.