Framework API #431
jakubkoci
started this conversation in
Architecture & Design
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The goal of this issue is to discuss the design of a high-level framework API consumed by the developer using this library.
As I've been thinking about the framework architecture I see it consisting of the following parts/areas:
Core Functionality
acceptInvitation
,provision
,downloadMessages
,sendMessageToConnection
, creating credential, ...)Plugable Protocols
The idea is to be able to add/remove protocols which developer want to use without changing the core framework part (open-close principle)
...
Plugable Storage
...
API
Framework functionality should be provided via an instance of
Agent
class:When a developer creates such instance, then she can access modules. Modules works like facade around similar features of the framework:
A module can also provide an event emitter:
Other parts of the framework should be hidden and ideally not possible to export and use outside.
NOTE: This description is still in progress, I'll put some updates soon.
Beta Was this translation helpful? Give feedback.
All reactions