Documentation
¶
Index ¶
- type Provider
- func (p *Provider) Close() error
- func (p *Provider) GetOpenStores() []storage.Store
- func (p *Provider) GetStoreConfig(name string) (storage.StoreConfiguration, error)
- func (p *Provider) OpenStore(name string) (storage.Store, error)
- func (p *Provider) SetStoreConfig(name string, config storage.StoreConfiguration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is an IndexedDB implementation of the storage.Provider interface.
func NewProvider ¶
NewProvider instantiates a new IndexedDB provider.
func (*Provider) Close ¶
Close closes all stores created under this store provider. There's nothing to do here, so it always returns nil.
func (*Provider) GetOpenStores ¶
GetOpenStores is currently not implemented (TODO #2528).
func (*Provider) GetStoreConfig ¶
func (p *Provider) GetStoreConfig(name string) (storage.StoreConfiguration, error)
GetStoreConfig gets the current store configuration.
func (*Provider) OpenStore ¶
OpenStore opens a store with the given name and returns a handle. If the store has never been opened before, then it is created.
func (*Provider) SetStoreConfig ¶
func (p *Provider) SetStoreConfig(name string, config storage.StoreConfiguration) error
SetStoreConfig sets the configuration on a store. This must be done before storing any data in order to make use of the Query method. TODO (#2540): Use proper IndexedDB indexing instead of the "Tag Map" once aries-framework-go is updated to use the new storage interface. The tag names used in the predefined stores (see getStoreNames()) will need to be passed in somehow.