-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Middleware's New Architecture #4
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Refactor FireflyConfig out of Config for later on firefly api endpoints reflections. Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Use register interface to register api endpoints instead of explicitly designating endpoints. Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Refactor images uploading to ImagesBase64ToIPFS. Refactor query and invoke interfaces. Use reflection api for runtime endpoint assignments. Use Proto.MiddlewareError for error handling. Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Wrap ipfs shell inside ipfsManager. Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Refactor verification parts. Use register to dynamically register session storage. Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Two struct with PostBlock stored on the chain and Post stored offchain with gorm/postgres. Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Split userprofile into User + Profile Profile belongs to User and Frontend shall display user when browsing. Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Basically the same as the post model. Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Seperate GatewayConfig, PostgresConfig and FireflyConfig for better config parameterizing. Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Chaincode middleware registers two special handlers. ChaincodeInvoke - wiring the http request to the cc invoke. ChaincodeCallback - Listen for the cc server to send event back to the server and perform offchain storing. ChaincodeInvoke is grouped as the ../invoke/{actionName} The middleware will create goroutine to listen event and call the corresponding callback when possible. Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Gateway holds multiple chaincodes middlewares and registers them on the given name /api/{name}. It will start all the goroutines needed to listen to the ledger callbacks Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
The offchain store uses gorm ORM. Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Add go-sqlmock + sqlite3 drivers Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Add gorm mysql driver Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Add chaincode network interface mocking Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Use package importing to simply codes Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Signed-off-by: Yiyang Wu <toolmanp@outlook.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
What type of PR is this? (check all applicable)
Related Tickets & Documents
resolved #2
resolved #3
Direct Issues
#2 On moving firefly back to fabric gateway
#3 Unittests and Load tests
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
See
README.md