Documentation
¶
Index ¶
- func NewHandler(claims claimstore.ClaimStore) handler.Func
- type ClaimService
- type Claims
- type Option
- func WithAsyncPublisher(p publisher.AsyncPublisher) Option
- func WithLogLevel(level string) Option
- func WithPublisherAnnounceAddress(addr multiaddr.Multiaddr) Option
- func WithPublisherBlobAddress(addr multiaddr.Multiaddr) Option
- func WithPublisherDirectAnnounce(announceURLs ...url.URL) Option
- func WithPublisherIndexingService(conn client.Connection) Option
- func WithPublisherIndexingServiceConfig(serviceDID ucan.Principal, serviceURL url.URL) Option
- func WithPublisherIndexingServiceProof(proof ...delegation.Proof) Option
- type Server
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 ¶
WithLogLevel changes the log level for the claims subsystem.
func WithPublisherAnnounceAddress ¶
WithPublisherAnnounceAddress sets the address put into announce messages to tell indexers where to fetch advertisements from.
func WithPublisherBlobAddress ¶
WithPublisherBlobAddress sets the address the publisher uses to announce blobs
func WithPublisherDirectAnnounce ¶
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 ¶
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)