protocol

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProvider

type MockProvider struct {
	StoreProvider          *mockstore.MockStoreProvider
	TransientStoreProvider *mockstore.MockStoreProvider
	CustomVDRI             vdriapi.Registry
	CustomOutbound         *mockdispatcher.MockOutbound
	CustomMessenger        *mockservice.MockMessenger
	CustomKMS              *mockkms.CloseableKMS
	ServiceErr             error
	ServiceMap             map[string]interface{}
	InboundMsgHandler      transport.InboundMessageHandler
	OutboundMsgHandler     service.OutboundHandler
}

MockProvider is provider for DIDExchange Service

func (*MockProvider) InboundMessageHandler added in v0.1.3

func (p *MockProvider) InboundMessageHandler() transport.InboundMessageHandler

InboundMessageHandler handles an unpacked inbound message.

func (*MockProvider) LegacyKMS added in v0.1.2

func (p *MockProvider) LegacyKMS() legacykms.KeyManager

LegacyKMS returns mock LegacyKMS

func (*MockProvider) Messenger added in v0.1.3

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) OutboundMessageHandler added in v0.1.3

func (p *MockProvider) OutboundMessageHandler() service.OutboundHandler

OutboundMessageHandler handles an outbound message.

func (*MockProvider) Service added in v0.1.1

func (p *MockProvider) Service(id string) (interface{}, error)

Service return service

func (*MockProvider) Signer

func (p *MockProvider) Signer() legacykms.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

func (*MockProvider) VDRIRegistry added in v0.1.1

func (p *MockProvider) VDRIRegistry() vdriapi.Registry

VDRIRegistry is mock vdri registry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL