locator

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0, MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIndexLocator

func NewIndexLocator(indexer IndexerClient, delegations []delegation.Delegation) *indexLocator

Types

type IndexerClient

type IndexerClient interface {
	QueryClaims(ctx context.Context, query types.Query) (types.QueryResult, error)
}

type Location

type Location struct {
	Commitment ucan.Capability[assert.LocationCaveats]
	Digest     mh.Multihash
	Position   blobindex.Position
}

type Locator

type Locator interface {
	Locate(ctx context.Context, spaceDID did.DID, hash mh.Multihash) ([]Location, error)
}

type NotFoundError

type NotFoundError struct {
	Hash mh.Multihash
}

func (NotFoundError) Error

func (e NotFoundError) Error() string

Jump to

Keyboard shortcuts

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