indexerclient

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

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.

Jump to

Keyboard shortcuts

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