Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a UCAN client for communicating with the indexer service.
func New ¶
func New(endpoint *url.URL, indexerDID did.DID, signer principal.Signer, logger *zap.Logger) (*Client, error)
New creates a new indexer client.
func (*Client) CacheLocationClaim ¶
func (c *Client) CacheLocationClaim(ctx context.Context, claim delegation.Delegation, providerAddrs []multiaddr.Multiaddr) error
CacheLocationClaim sends a claim/cache invocation to cache a location claim with the indexer. This tells the indexer where content is stored (provider address).
func (*Client) PublishIndexClaim ¶
func (c *Client) PublishIndexClaim(ctx context.Context, space did.DID, content, index cid.Cid, clientAuth delegation.Delegation) error
PublishIndexClaim sends an assert/index claim to the indexer. clientAuth is the space/content/retrieve delegation from the client (guppy). If provided, the upload service creates a fresh delegation to the indexer using the same caveats. The client's proof chain is NOT included to avoid leaking did:mailto identities to storage nodes.
Click to show internal directories.
Click to hide internal directories.