claims

package
v0.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(claims claimstore.ClaimStore) handler.Func

Types

type ClaimService

type ClaimService struct {
	// contains filtered or unexported fields
}

func New

func New(id principal.Signer, claimStore claimstore.ClaimStore, publisherStore store.PublisherStore, publicAddr multiaddr.Multiaddr, opts ...Option) (*ClaimService, error)

func NewV2 added in v0.0.12

func NewV2(
	claimStore claimstore.ClaimStore,
	publisher publisher.Publisher,
) *ClaimService

func (*ClaimService) Publisher

func (c *ClaimService) Publisher() publisher.Publisher

func (*ClaimService) Store

func (c *ClaimService) Store() claimstore.ClaimStore

type Claims

type Claims interface {
	// Store is the storage for location claims.
	Store() claimstore.ClaimStore
	// Publisher advertises content claims/commitments found on this node to the
	// storacha network.
	Publisher() publisher.Publisher
}

type Option

type Option func(*options) error

func WithAsyncPublisher added in v0.0.17

func WithAsyncPublisher(p publisher.AsyncPublisher) Option

WithAsyncPublisher configures the async publisher for IPNI advertisements (overrides any publisher specific config)

func WithLogLevel

func WithLogLevel(level string) Option

WithLogLevel changes the log level for the claims subsystem.

func WithPublisherAnnounceAddress

func WithPublisherAnnounceAddress(addr multiaddr.Multiaddr) Option

WithPublisherAnnounceAddress sets the address put into announce messages to tell indexers where to fetch advertisements from.

func WithPublisherBlobAddress

func WithPublisherBlobAddress(addr multiaddr.Multiaddr) Option

WithPublisherBlobAddress sets the address the publisher uses to announce blobs

func WithPublisherDirectAnnounce

func WithPublisherDirectAnnounce(announceURLs ...url.URL) Option

WithPublisherDirectAnnounce sets indexer URLs to send direct HTTP announcements to.

func WithPublisherIndexingService

func WithPublisherIndexingService(conn client.Connection) Option

WithPublisherIndexingService sets the client connection to the indexing UCAN service.

func WithPublisherIndexingServiceConfig

func WithPublisherIndexingServiceConfig(serviceDID ucan.Principal, serviceURL url.URL) Option

WithPublisherIndexingServiceConfig configures UCAN service invocation details for communicating with the indexing service.

func WithPublisherIndexingServiceProof

func WithPublisherIndexingServiceProof(proof ...delegation.Proof) Option

WithPublisherIndexingServiceProof configures proofs for UCAN invocations to the indexing service.

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(claims claimstore.ClaimStore) (*Server, error)

func (*Server) RegisterRoutes added in v0.0.12

func (srv *Server) RegisterRoutes(e *echo.Echo)

Jump to

Keyboard shortcuts

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