Skip to content
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

Add IPFS Gateway HTTP transport metadata as a well-known multicodec #22

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

masih
Copy link
Member

@masih masih commented Apr 24, 2023

Add SDK to aid parsing IPNI metadata that represents IPFS Gateway HTTP transport protocol.

Relates to:

Fixes #21

@masih masih requested a review from willscott April 24, 2023 14:13
@codecov-commenter
Copy link

codecov-commenter commented Apr 24, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.21 ⚠️

Comparison is base (f4876a4) 51.02% compared to head (ca2d8c4) 50.82%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
- Coverage   51.02%   50.82%   -0.21%     
==========================================
  Files          56       57       +1     
  Lines        4715     4740      +25     
==========================================
+ Hits         2406     2409       +3     
- Misses       2049     2070      +21     
- Partials      260      261       +1     
Impacted Files Coverage Δ
metadata/ipfs_trustless_gateway.go 0.00% <0.00%> (ø)
metadata/metadata.go 53.04% <0.00%> (-0.47%) ⬇️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Add SDK to aid parsing IPNI metadata that represents IPFS Gateway HTTP
transport protocol.

Relates to:
 - multiformats/multicodec#321

Fixes #21
@masih masih force-pushed the masih/ipfs_gateway_http_md branch from ca2d8c4 to e20eabc Compare April 24, 2023 14:41
@masih masih merged commit d2811a7 into main Apr 25, 2023
16 checks passed
@masih masih deleted the masih/ipfs_gateway_http_md branch April 25, 2023 10:17
olizilla pushed a commit to web3-storage/ipni that referenced this pull request May 22, 2023
Getting an error still decoding HTTP advertisements in go. Looks like
it's due to the fact that HTTP encodes a varint(0) for the payload size
-- see ipni/go-libipni#22 (comment)

Tagging @willscott and @masih for visibility. I wonder if there is a way
we can generate a valid ad and verify against it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define metadata type for Trustless HTTP Gateway Multicodec
4 participants