-
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
feat: cache and store content claims #29
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
3859905
feat: cache claims in ClaimLookup
alanshaw 9638561
feat: cache and permanent store for content claims
alanshaw 8bc0839
test: add server claim get test
alanshaw e1099b9
fix: infra
alanshaw 34346ab
feat: allow redis client to be passed to construct
alanshaw 16360c4
chore: upgrade ucanto
alanshaw 630fe49
fix: creating delegation
alanshaw 887a49e
fix: allow configure direct announce URL different from find URL
alanshaw e49e41e
chore: upgrade ucanto
alanshaw 8143419
chore: update ucanto
alanshaw 2d48bbf
chore: upgrade ucanto
alanshaw d76b0a8
chore: upgrade ucanto
alanshaw 10f31ac
fix: effects import
alanshaw 289b246
chore: mod tidy
alanshaw 9a3328e
feat: client (#32)
alanshaw 6725d07
refactor: remove GetFreePort
alanshaw b9eccd3
feat: integrate updated blob/accept capability
alanshaw 1c1606b
fix: location claim code
alanshaw 32b8396
fix: more meta fixes
alanshaw 13649fe
fix: remove log line
alanshaw 6f72478
feat: pass custom metadata context
alanshaw 1c8cbe1
chore: mod tidy
alanshaw 0f01f30
fix: filter only results that are filterable by context ID
alanshaw 57c2970
chore: upgrade dependencies
alanshaw 3a0454f
chore: mod tidy
alanshaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
TF_WORKSPACE= | ||
TF_VAR_PRIVATE_KEY= | ||
TF_VAR_private_key= | ||
TF_VAR_public_url= |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package main | ||
|
||
import ( | ||
"context" | ||
"net/http" | ||
|
||
"github.com/aws/aws-lambda-go/lambda" | ||
"github.com/awslabs/aws-lambda-go-api-proxy/httpadapter" | ||
"github.com/storacha/indexing-service/pkg/aws" | ||
"github.com/storacha/indexing-service/pkg/server" | ||
) | ||
|
||
func main() { | ||
config := aws.FromEnv(context.Background()) | ||
service, err := aws.Construct(config) | ||
if err != nil { | ||
panic(err) | ||
} | ||
handler := server.GetClaimHandler(service) | ||
lambda.Start(httpadapter.NewV2(http.HandlerFunc(handler)).ProxyWithContext) | ||
} |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: in prod, shouldn't this be the same bucket we already have to legacy claims? Or do we store it different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I have set it up to store it differently. However, in my experience, separating the infras is good, when we don't do that things get difficult (like not separating CAR buckets per application/version for example).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course, if you have strong feels then I don't really mind either way.