github.com/hyperledger/aries-framework-go@v0.3.2/pkg/store/ld/ld.go (about) 1 /* 2 Copyright SecureKey Technologies Inc. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package ld 8 9 import ( 10 "github.com/hyperledger/aries-framework-go/component/models/ld/store" 11 "github.com/hyperledger/aries-framework-go/spi/storage" 12 ) 13 14 const ( 15 // ContextStoreName is a JSON-LD context store name. 16 ContextStoreName = store.ContextStoreName 17 18 // ContextRecordTag is a tag associated with every record in the store. 19 ContextRecordTag = store.ContextRecordTag 20 21 // RemoteProviderStoreName is a remote provider store name. 22 RemoteProviderStoreName = store.RemoteProviderStoreName 23 24 // RemoteProviderRecordTag is a tag associated with every record in the store. 25 RemoteProviderRecordTag = store.RemoteProviderRecordTag 26 ) 27 28 // ContextStore represents a repository for JSON-LD context operations. 29 type ContextStore = store.ContextStore 30 31 // ContextStoreImpl is a default implementation of JSON-LD context repository. 32 type ContextStoreImpl = store.ContextStoreImpl 33 34 // NewContextStore returns a new instance of ContextStoreImpl. 35 func NewContextStore(storageProvider storage.Provider) (*ContextStoreImpl, error) { 36 return store.NewContextStore(storageProvider) 37 } 38 39 // RemoteProviderRecord is a record in store with remote provider info. 40 type RemoteProviderRecord = store.RemoteProviderRecord 41 42 // RemoteProviderStore represents a repository for remote context provider operations. 43 type RemoteProviderStore = store.RemoteProviderStore 44 45 // RemoteProviderStoreImpl is a default implementation of remote provider repository. 46 type RemoteProviderStoreImpl = store.RemoteProviderStoreImpl 47 48 // NewRemoteProviderStore returns a new instance of RemoteProviderStoreImpl. 49 func NewRemoteProviderStore(storageProvider storage.Provider) (*RemoteProviderStoreImpl, error) { 50 return store.NewRemoteProviderStore(storageProvider) 51 }