Documentation
¶
Index ¶
- type MockDIDExchangeSvc
- func (m *MockDIDExchangeSvc) Accept(msgType string) bool
- func (m *MockDIDExchangeSvc) AcceptExchangeRequest(connectionID string) error
- func (m *MockDIDExchangeSvc) AcceptInvitation(connectionID string) error
- func (m *MockDIDExchangeSvc) HandleInbound(msg *service.DIDCommMsg) (string, error)
- func (m *MockDIDExchangeSvc) HandleOutbound(msg *service.DIDCommMsg, dest *service.Destination) error
- func (m *MockDIDExchangeSvc) Name() string
- func (m *MockDIDExchangeSvc) RegisterActionEvent(ch chan<- service.DIDCommAction) error
- func (m *MockDIDExchangeSvc) RegisterMsgEvent(ch chan<- service.StateMsg) error
- func (m *MockDIDExchangeSvc) UnregisterActionEvent(ch chan<- service.DIDCommAction) error
- func (m *MockDIDExchangeSvc) UnregisterMsgEvent(ch chan<- service.StateMsg) error
- type MockProvider
- func (p *MockProvider) DIDResolver() didresolver.Resolver
- func (p *MockProvider) DIDStore() didstore.Storage
- func (p *MockProvider) OutboundDispatcher() dispatcher.Outbound
- func (p *MockProvider) Signer() kms.Signer
- func (p *MockProvider) StorageProvider() storage.Provider
- func (p *MockProvider) TransientStorageProvider() storage.Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDIDExchangeSvc ¶
type MockDIDExchangeSvc struct {
ProtocolName string
HandleFunc func(*service.DIDCommMsg) (string, error)
HandleOutboundFunc func(msg *service.DIDCommMsg, dest *service.Destination) error
AcceptFunc func(string) bool
RegisterActionEventErr error
UnregisterActionEventErr error
RegisterMsgEventErr error
UnregisterMsgEventErr error
}
MockDIDExchangeSvc mock did exchange service
func (*MockDIDExchangeSvc) Accept ¶
func (m *MockDIDExchangeSvc) Accept(msgType string) bool
Accept msg checks the msg type
func (*MockDIDExchangeSvc) AcceptExchangeRequest ¶
func (m *MockDIDExchangeSvc) AcceptExchangeRequest(connectionID string) error
AcceptExchangeRequest accepts/approves exchange request.
func (*MockDIDExchangeSvc) AcceptInvitation ¶
func (m *MockDIDExchangeSvc) AcceptInvitation(connectionID string) error
AcceptInvitation accepts/approves exchange invitation.
func (*MockDIDExchangeSvc) HandleInbound ¶
func (m *MockDIDExchangeSvc) HandleInbound(msg *service.DIDCommMsg) (string, error)
HandleInbound msg
func (*MockDIDExchangeSvc) HandleOutbound ¶
func (m *MockDIDExchangeSvc) HandleOutbound(msg *service.DIDCommMsg, dest *service.Destination) error
HandleOutbound msg
func (*MockDIDExchangeSvc) Name ¶
func (m *MockDIDExchangeSvc) Name() string
Name return service name
func (*MockDIDExchangeSvc) RegisterActionEvent ¶
func (m *MockDIDExchangeSvc) RegisterActionEvent(ch chan<- service.DIDCommAction) error
RegisterActionEvent register action event.
func (*MockDIDExchangeSvc) RegisterMsgEvent ¶
func (m *MockDIDExchangeSvc) RegisterMsgEvent(ch chan<- service.StateMsg) error
RegisterMsgEvent register message event.
func (*MockDIDExchangeSvc) UnregisterActionEvent ¶
func (m *MockDIDExchangeSvc) UnregisterActionEvent(ch chan<- service.DIDCommAction) error
UnregisterActionEvent unregister action event.
func (*MockDIDExchangeSvc) UnregisterMsgEvent ¶
func (m *MockDIDExchangeSvc) UnregisterMsgEvent(ch chan<- service.StateMsg) error
UnregisterMsgEvent unregister message event.
type MockProvider ¶
type MockProvider struct {
StoreProvider *mockstore.MockStoreProvider
TransientStoreProvider *mockstore.MockStoreProvider
}
MockProvider is provider for DIDExchange Service
func (*MockProvider) DIDResolver ¶
func (p *MockProvider) DIDResolver() didresolver.Resolver
DIDResolver is mock DID resolver
func (*MockProvider) DIDStore ¶
func (p *MockProvider) DIDStore() didstore.Storage
DIDStore is mock DID store
func (*MockProvider) OutboundDispatcher ¶
func (p *MockProvider) OutboundDispatcher() dispatcher.Outbound
OutboundDispatcher is mock outbound dispatcher for DID exchange service
func (*MockProvider) Signer ¶
func (p *MockProvider) Signer() kms.Signer
Signer is mock signer for DID exchange service
func (*MockProvider) StorageProvider ¶
func (p *MockProvider) StorageProvider() storage.Provider
StorageProvider is mock storage provider for DID exchange service
func (*MockProvider) TransientStorageProvider ¶
func (p *MockProvider) TransientStorageProvider() storage.Provider
TransientStorageProvider is mock transient storage provider for DID exchange service