Documentation ¶
Index ¶
- type MockProvider
- func (p *MockProvider) AllServices() []dispatcher.ProtocolService
- func (p *MockProvider) Crypto() crypto.Crypto
- func (p *MockProvider) DIDConnectionStore() did.ConnectionStore
- func (p *MockProvider) InboundDIDCommMessageHandler() func() service.InboundHandler
- func (p *MockProvider) InboundMessageHandler() transport.InboundMessageHandler
- func (p *MockProvider) KMS() kms.KeyManager
- func (p *MockProvider) KeyAgreementType() kms.KeyType
- func (p *MockProvider) KeyType() kms.KeyType
- func (p *MockProvider) MediaTypeProfiles() []string
- func (p *MockProvider) Messenger() service.Messenger
- func (p *MockProvider) OutboundDispatcher() dispatcher.Outbound
- func (p *MockProvider) Packager() transport.Packager
- func (p *MockProvider) ProtocolStateStorageProvider() storage.Provider
- func (p *MockProvider) RouterEndpoint() string
- func (p *MockProvider) SecretLock() secretlock.Service
- func (p *MockProvider) Service(id string) (interface{}, error)
- func (p *MockProvider) ServiceMsgTypeTargets() []dispatcher.MessageTypeTarget
- func (p *MockProvider) StorageProvider() storage.Provider
- func (p *MockProvider) VDRegistry() vdrapi.Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProvider ¶
type MockProvider struct { StoreProvider storage.Provider ProtocolStateStoreProvider storage.Provider KMSStore kms.Store CustomVDR vdrapi.Registry CustomOutbound *mockdispatcher.MockOutbound CustomMessenger *mockservice.MockMessenger CustomPackager transport.Packager CustomKMS kms.KeyManager CustomLock secretlock.Service CustomCrypto *mockcrypto.Crypto ServiceErr error ServiceMap map[string]interface{} InboundMsgHandler transport.InboundMessageHandler InboundDIDCommMsgHandlerFunc func() service.InboundHandler KeyTypeValue kms.KeyType KeyAgreementTypeValue kms.KeyType MsgTypeServicesTargets []dispatcher.MessageTypeTarget AllProtocolServices []dispatcher.ProtocolService RouterEndpointValue string // contains filtered or unexported fields }
MockProvider is provider for DIDExchange Service.
func (*MockProvider) AllServices ¶ added in v0.1.8
func (p *MockProvider) AllServices() []dispatcher.ProtocolService
AllServices returns a mocked list of Protocol services.
func (*MockProvider) Crypto ¶
func (p *MockProvider) Crypto() crypto.Crypto
Crypto is mock crypto (including Signer) for DID exchange service.
func (*MockProvider) DIDConnectionStore ¶ added in v0.1.7
func (p *MockProvider) DIDConnectionStore() did.ConnectionStore
DIDConnectionStore returns DID connection store.
func (*MockProvider) InboundDIDCommMessageHandler ¶ added in v0.1.7
func (p *MockProvider) InboundDIDCommMessageHandler() func() service.InboundHandler
InboundDIDCommMessageHandler returns a supplier of inbound message handlers.
func (*MockProvider) InboundMessageHandler ¶
func (p *MockProvider) InboundMessageHandler() transport.InboundMessageHandler
InboundMessageHandler handles an unpacked inbound message.
func (*MockProvider) KMS ¶
func (p *MockProvider) KMS() kms.KeyManager
KMS returns mock kms instance.
func (*MockProvider) KeyAgreementType ¶ added in v0.1.7
func (p *MockProvider) KeyAgreementType() kms.KeyType
KeyAgreementType returns a mocked keyType value for KeyAgreement.
func (*MockProvider) KeyType ¶ added in v0.1.7
func (p *MockProvider) KeyType() kms.KeyType
KeyType returns a mocked keyType value for authentication (signing).
func (*MockProvider) MediaTypeProfiles ¶ added in v0.1.7
func (p *MockProvider) MediaTypeProfiles() []string
MediaTypeProfiles returns the media type profiles.
func (*MockProvider) Messenger ¶
func (p *MockProvider) Messenger() service.Messenger
Messenger return mock messenger.
func (*MockProvider) OutboundDispatcher ¶
func (p *MockProvider) OutboundDispatcher() dispatcher.Outbound
OutboundDispatcher is mock outbound dispatcher for DID exchange service.
func (*MockProvider) Packager ¶ added in v0.1.8
func (p *MockProvider) Packager() transport.Packager
Packager is a mock framework Packager service.
func (*MockProvider) ProtocolStateStorageProvider ¶
func (p *MockProvider) ProtocolStateStorageProvider() storage.Provider
ProtocolStateStorageProvider is mock protocol state storage provider for DID exchange service.
func (*MockProvider) RouterEndpoint ¶ added in v0.1.8
func (p *MockProvider) RouterEndpoint() string
RouterEndpoint returns mock router endpoint.
func (*MockProvider) SecretLock ¶
func (p *MockProvider) SecretLock() secretlock.Service
SecretLock returns SecretLock instance.
func (*MockProvider) Service ¶
func (p *MockProvider) Service(id string) (interface{}, error)
Service return service.
func (*MockProvider) ServiceMsgTypeTargets ¶ added in v0.1.8
func (p *MockProvider) ServiceMsgTypeTargets() []dispatcher.MessageTypeTarget
ServiceMsgTypeTargets are the target service types used by OOB/v2 for subsequent event triggering.
func (*MockProvider) StorageProvider ¶
func (p *MockProvider) StorageProvider() storage.Provider
StorageProvider is mock storage provider for DID exchange service.
func (*MockProvider) VDRegistry ¶ added in v0.1.5
func (p *MockProvider) VDRegistry() vdrapi.Registry
VDRegistry is mock vdr registry.