Documentation
¶
Index ¶
- type Provider
- func (p *Provider) AriesFrameworkID() string
- func (p *Provider) Crypto() crypto.Crypto
- func (p *Provider) InboundMessageHandler() transport.InboundMessageHandler
- func (p *Provider) InboundTransportEndpoint() string
- func (p *Provider) KMS() legacykms.KeyManager
- func (p *Provider) Messenger() service.Messenger
- func (p *Provider) OutboundDispatcher() dispatcher.Outbound
- func (p *Provider) OutboundTransports() []transport.OutboundTransport
- func (p *Provider) Packager() commontransport.Packager
- func (p *Provider) Packers() []packer.Packer
- func (p *Provider) PrimaryPacker() packer.Packer
- func (p *Provider) Service(id string) (interface{}, error)
- func (p *Provider) Signer() legacykms.Signer
- func (p *Provider) StorageProvider() storage.Provider
- func (p *Provider) TransientStorageProvider() storage.Provider
- func (p *Provider) TransportReturnRoute() string
- func (p *Provider) VDRIRegistry() vdriapi.Registry
- type ProviderOption
- func WithAriesFrameworkID(id string) ProviderOption
- func WithCrypto(c crypto.Crypto) ProviderOption
- func WithInboundTransportEndpoint(endpoint string) ProviderOption
- func WithKMS(w legacykms.KMS) ProviderOption
- func WithMessageServiceProvider(msv api.MessageServiceProvider) ProviderOption
- func WithMessengerHandler(mh service.MessengerHandler) ProviderOption
- func WithOutboundDispatcher(outboundDispatcher dispatcher.Outbound) ProviderOption
- func WithOutboundTransports(transports ...transport.OutboundTransport) ProviderOption
- func WithPackager(p commontransport.Packager) ProviderOption
- func WithPacker(primary packer.Packer, additionalPackers ...packer.Packer) ProviderOption
- func WithProtocolServices(services ...dispatcher.ProtocolService) ProviderOption
- func WithStorageProvider(s storage.Provider) ProviderOption
- func WithTransientStorageProvider(s storage.Provider) ProviderOption
- func WithTransportReturnRoute(transportReturnRoute string) ProviderOption
- func WithVDRIRegistry(vdri vdriapi.Registry) ProviderOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider supplies the framework configuration to client objects.
func New ¶
func New(opts ...ProviderOption) (*Provider, error)
New instantiates a new context provider.
func (*Provider) AriesFrameworkID ¶ added in v0.1.1
AriesFrameworkID returns an inbound transport endpoint.
func (*Provider) InboundMessageHandler ¶
func (p *Provider) InboundMessageHandler() transport.InboundMessageHandler
InboundMessageHandler return an inbound message handler.
func (*Provider) InboundTransportEndpoint ¶
InboundTransportEndpoint returns an inbound transport endpoint.
func (*Provider) OutboundDispatcher ¶
func (p *Provider) OutboundDispatcher() dispatcher.Outbound
OutboundDispatcher returns an outbound dispatcher.
func (*Provider) OutboundTransports ¶
func (p *Provider) OutboundTransports() []transport.OutboundTransport
OutboundTransports returns an outbound transports.
func (*Provider) Packager ¶
func (p *Provider) Packager() commontransport.Packager
Packager returns a packager service.
func (*Provider) PrimaryPacker ¶
PrimaryPacker returns the main inbound/outbound Packer service.
func (*Provider) StorageProvider ¶
StorageProvider return a storage provider.
func (*Provider) TransientStorageProvider ¶
TransientStorageProvider return a transient storage provider.
func (*Provider) TransportReturnRoute ¶ added in v0.1.1
TransportReturnRoute returns transport return route
func (*Provider) VDRIRegistry ¶ added in v0.1.1
VDRIRegistry returns a vdri registry
type ProviderOption ¶
ProviderOption configures the framework.
func WithAriesFrameworkID ¶ added in v0.1.1
func WithAriesFrameworkID(id string) ProviderOption
WithAriesFrameworkID injects the framework ID into the context. This is used to tie different framework components. The client can have multiple framework and with same instance of transport shared across it and this id is used by the framework to tie the inbound transport and outbound transports (in case of duplex communication).
func WithCrypto ¶ added in v0.1.1
func WithCrypto(c crypto.Crypto) ProviderOption
WithCrypto injects a Crypto service into the context
func WithInboundTransportEndpoint ¶
func WithInboundTransportEndpoint(endpoint string) ProviderOption
WithInboundTransportEndpoint injects an inbound transport endpoint into the context.
func WithKMS ¶
func WithKMS(w legacykms.KMS) ProviderOption
WithKMS injects a kms service into the context.
func WithMessageServiceProvider ¶ added in v0.1.1
func WithMessageServiceProvider(msv api.MessageServiceProvider) ProviderOption
WithMessageServiceProvider injects a message service provider into the context
func WithMessengerHandler ¶ added in v0.1.1
func WithMessengerHandler(mh service.MessengerHandler) ProviderOption
WithMessengerHandler injects the messenger into the context.
func WithOutboundDispatcher ¶
func WithOutboundDispatcher(outboundDispatcher dispatcher.Outbound) ProviderOption
WithOutboundDispatcher injects an outbound dispatcher into the context.
func WithOutboundTransports ¶ added in v0.1.1
func WithOutboundTransports(transports ...transport.OutboundTransport) ProviderOption
WithOutboundTransports injects an outbound transports into the context.
func WithPackager ¶
func WithPackager(p commontransport.Packager) ProviderOption
WithPackager injects a packager into the context.
func WithPacker ¶
func WithPacker(primary packer.Packer, additionalPackers ...packer.Packer) ProviderOption
WithPacker injects at least one Packer into the context, with the primary Packer being used for inbound/outbound communication and the additional packers being available for unpacking inbound messages.
func WithProtocolServices ¶
func WithProtocolServices(services ...dispatcher.ProtocolService) ProviderOption
WithProtocolServices injects a protocol services into the context.
func WithStorageProvider ¶
func WithStorageProvider(s storage.Provider) ProviderOption
WithStorageProvider injects a storage provider into the context.
func WithTransientStorageProvider ¶
func WithTransientStorageProvider(s storage.Provider) ProviderOption
WithTransientStorageProvider injects a transient storage provider into the context.
func WithTransportReturnRoute ¶ added in v0.1.1
func WithTransportReturnRoute(transportReturnRoute string) ProviderOption
WithTransportReturnRoute injects transport return route option to the Aries framework.
func WithVDRIRegistry ¶ added in v0.1.1
func WithVDRIRegistry(vdri vdriapi.Registry) ProviderOption
WithVDRIRegistry injects a vdri service into the context.