claimlookup

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimLookup

type ClaimLookup interface {
	LookupClaim(ctx context.Context, claimCid cid.Cid, fetchURL url.URL) (delegation.Delegation, error)
}

func NewClaimLookup

func NewClaimLookup(httpClient *http.Client) ClaimLookup

NewClaimLookup creates a new ClaimLookup with the provided claimstore and HTTP client

func WithCache

func WithCache(claimLookup ClaimLookup, claimStore types.ContentClaimsStore) ClaimLookup

WithCache augments a ClaimLookup with cached claims from a claim store

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL