Documentation ¶
Index ¶
- type Provider
- func (p *Provider) AllServices() []dispatcher.ProtocolService
- func (p *Provider) Crypto() crypto.Crypto
- func (p *Provider) DIDConnectionStore() did.ConnectionStore
- func (p *Provider) DIDRotator() *middleware.DIDCommMessageMiddleware
- func (p *Provider) GetDIDsBackOffDuration() time.Duration
- func (p *Provider) GetDIDsMaxRetries() uint64
- func (p *Provider) InboundMessageHandler() transport.InboundMessageHandler
- func (p *Provider) InboundMessenger() service.InboundMessenger
- func (p *Provider) JSONLDContextStore() ld.ContextStore
- func (p *Provider) JSONLDDocumentLoader() jsonld.DocumentLoader
- func (p *Provider) JSONLDRemoteProviderStore() ld.RemoteProviderStore
- func (p *Provider) KMS() kms.KeyManager
- func (p *Provider) KeyAgreementType() kms.KeyType
- func (p *Provider) KeyType() kms.KeyType
- func (p *Provider) MediaTypeProfiles() []string
- func (p *Provider) MessageServiceProvider() api.MessageServiceProvider
- func (p *Provider) Messenger() service.Messenger
- func (p *Provider) OutboundDispatcher() dispatcher.Outbound
- func (p *Provider) Packager() transport.Packager
- func (p *Provider) Packers() []packer.Packer
- func (p *Provider) PrimaryPacker() packer.Packer
- func (p *Provider) ProtocolStateStorageProvider() storage.Provider
- func (p *Provider) RouterEndpoint() string
- func (p *Provider) Service(id string) (interface{}, error)
- func (p *Provider) ServiceEndpoint() string
- func (p *Provider) StorageProvider() storage.Provider
- func (p *Provider) VDRegistry() vdrapi.Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { ServiceValue interface{} ServiceErr error ServiceMap map[string]interface{} KMSValue kms.KeyManager ServiceEndpointValue string StorageProviderValue storage.Provider ProtocolStateStorageProviderValue storage.Provider DIDConnectionStoreValue did.ConnectionStore PackerList []packer.Packer PackerValue packer.Packer OutboundDispatcherValue dispatcher.Outbound VDRegistryValue vdrapi.Registry CryptoValue crypto.Crypto ContextStoreValue ld.ContextStore RemoteProviderStoreValue ld.RemoteProviderStore DocumentLoaderValue jsonld.DocumentLoader KeyTypeValue kms.KeyType KeyAgreementTypeValue kms.KeyType MediaTypeProfilesValue []string InboundMessageHandlerValue transport.InboundMessageHandler PackagerValue transport.Packager MessageServiceProviderValue api.MessageServiceProvider InboundMessengerValue service.InboundMessenger GetDIDsBackoffDurationValue time.Duration GetDIDsMaxRetriesValue uint64 DIDRotatorValue middleware.DIDCommMessageMiddleware MessengerValue service.Messenger }
Provider mocks provider needed for did exchange service initialization.
func (*Provider) AllServices ¶
func (p *Provider) AllServices() []dispatcher.ProtocolService
AllServices return all services.
func (*Provider) DIDConnectionStore ¶
func (p *Provider) DIDConnectionStore() did.ConnectionStore
DIDConnectionStore returns the DID connection store.
func (*Provider) DIDRotator ¶
func (p *Provider) DIDRotator() *middleware.DIDCommMessageMiddleware
DIDRotator returns the did rotator.
func (*Provider) GetDIDsBackOffDuration ¶
GetDIDsBackOffDuration return backoff duration for getting DIDs.
func (*Provider) GetDIDsMaxRetries ¶
GetDIDsMaxRetries return max number of retries for getting DIDs.
func (*Provider) InboundMessageHandler ¶
func (p *Provider) InboundMessageHandler() transport.InboundMessageHandler
InboundMessageHandler return inbound message handler.
func (*Provider) InboundMessenger ¶
func (p *Provider) InboundMessenger() service.InboundMessenger
InboundMessenger return inbound messenger.
func (*Provider) JSONLDContextStore ¶
func (p *Provider) JSONLDContextStore() ld.ContextStore
JSONLDContextStore returns JSON-LD context store.
func (*Provider) JSONLDDocumentLoader ¶
func (p *Provider) JSONLDDocumentLoader() jsonld.DocumentLoader
JSONLDDocumentLoader returns JSON-LD document loader.
func (*Provider) JSONLDRemoteProviderStore ¶
func (p *Provider) JSONLDRemoteProviderStore() ld.RemoteProviderStore
JSONLDRemoteProviderStore returns remote JSON-LD context provider store.
func (*Provider) KeyAgreementType ¶
KeyAgreementType returns a mocked keyType value for KeyAgreement.
func (*Provider) MediaTypeProfiles ¶
MediaTypeProfiles returns the media type profiles.
func (*Provider) MessageServiceProvider ¶
func (p *Provider) MessageServiceProvider() api.MessageServiceProvider
MessageServiceProvider return message service provider.
func (*Provider) OutboundDispatcher ¶
func (p *Provider) OutboundDispatcher() dispatcher.Outbound
OutboundDispatcher return outbound dispatcher.
func (*Provider) PrimaryPacker ¶
PrimaryPacker returns the main Packer service.
func (*Provider) ProtocolStateStorageProvider ¶
ProtocolStateStorageProvider returns the protocol state storage provider.
func (*Provider) RouterEndpoint ¶
RouterEndpoint returns the router transport endpoint.
func (*Provider) ServiceEndpoint ¶
ServiceEndpoint returns the service endpoint.
func (*Provider) StorageProvider ¶
StorageProvider returns the storage provider.
func (*Provider) VDRegistry ¶
VDRegistry return vdr registry.