Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBStorageProvider ¶
type DBStorageProvider struct {
// contains filtered or unexported fields
}
DBStorageProvider provides access to identity-related storage services. It aggregates identity, wallet, and keystore managers to provide a unified interface for accessing storage services by TMS ID.
func NewDBStorageProvider ¶
func NewDBStorageProvider( identityStoreServiceManager IdentityStoreServiceManager, walletStoreServiceManager WalletStoreServiceManager, keyStoreStoreServiceManager KeystoreStoreServiceManager, ) *DBStorageProvider
NewDBStorageProvider creates a new DBStorageProvider with the given store service managers. This constructor is used by the dependency injection framework to wire up storage providers.
func (*DBStorageProvider) IdentityStore ¶
func (s *DBStorageProvider) IdentityStore(tmsID token.TMSID) (driver.IdentityStoreService, error)
IdentityStore returns the identity store service for the given TMS ID. It delegates to the underlying identity store service manager.
func (*DBStorageProvider) Keystore ¶
Keystore returns the keystore service for the given TMS ID. It delegates to the underlying keystore service manager.
func (*DBStorageProvider) WalletStore ¶
func (s *DBStorageProvider) WalletStore(tmsID token.TMSID) (driver.WalletStoreService, error)
WalletStore returns the wallet store service for the given TMS ID. It delegates to the underlying wallet store service manager.
type IdentityStoreServiceManager ¶
type IdentityStoreServiceManager interface {
// StoreServiceByTMSId returns the identity store service for the given TMS ID.
StoreServiceByTMSId(tmsID token.TMSID) (*identitydb.StoreService, error)
}
IdentityStoreServiceManager manages identity store services for different TMS instances. This interface is used for dependency injection and mock generation.
type KeystoreStoreServiceManager ¶
type KeystoreStoreServiceManager interface {
// StoreServiceByTMSId returns the keystore service for the given TMS ID.
StoreServiceByTMSId(tmsID token.TMSID) (*keystoredb.StoreService, error)
}
KeystoreStoreServiceManager manages keystore services for different TMS instances. This interface is used for dependency injection and mock generation.
type WalletStoreServiceManager ¶
type WalletStoreServiceManager interface {
// StoreServiceByTMSId returns the wallet store service for the given TMS ID.
StoreServiceByTMSId(tmsID token.TMSID) (*walletdb.StoreService, error)
}
WalletStoreServiceManager manages wallet store services for different TMS instances. This interface is used for dependency injection and mock generation.