app

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatorStorageConfig

type AggregatorStorageConfig struct {
	Dir    string
	DBPath string
}

AggregatorStorageConfig contains aggregator-specific storage paths

type AllocationStorageConfig

type AllocationStorageConfig struct {
	Dir string
}

AllocationStorageConfig contains allocation-specific storage paths

type AppConfig

type AppConfig struct {
	// Identity configuration
	Identity IdentityConfig

	// Server configuration
	Server ServerConfig

	// Storage paths and directories
	Storage StorageConfig

	// Configuration specific for UCAN operations
	UCANService UCANServiceConfig

	// Configuration specific for PDP operations
	PDPService PDPServiceConfig
}

AppConfig is the root configuration for the entire application

type BlobStorageConfig

type BlobStorageConfig struct {
	Dir    string
	TmpDir string
}

BlobStorageConfig contains blob-specific storage paths

type ClaimStorageConfig

type ClaimStorageConfig struct {
	Dir string
}

ClaimStorageConfig contains claim-specific storage paths

type ExternalServicesConfig

type ExternalServicesConfig struct {
	PrincipalMapping map[string]string

	Indexer   IndexingServiceConfig
	Upload    UploadServiceConfig
	Publisher PublisherServiceConfig
}

type IdentityConfig

type IdentityConfig struct {
	// The principal signer for this service
	Signer principal.Signer
}

IdentityConfig contains identity-related configuration

type IndexingServiceConfig

type IndexingServiceConfig struct {
	Connection client.Connection
	Proofs     delegation.Proofs
}

IndexingServiceConfig contains indexing service connection and proof(s) for using the service

type KeyStoreConfig added in v0.0.13

type KeyStoreConfig struct {
	Dir string
}

type PDPServiceConfig added in v0.0.13

type PDPServiceConfig struct {
	// Users address, which owns a proof set and sends messages to the ContractAddress
	OwnerAddress common.Address
	// The 'PDP Service' contract address defined here: https://github.com/FilOzone/pdp/
	ContractAddress common.Address
	// The URL endpoint of a lotus node used for interaction with chain state.
	LotusEndpoint *url.URL
}

type PDPStoreConfig added in v0.0.13

type PDPStoreConfig struct {
	Dir string
}

type PublisherServiceConfig added in v0.0.13

type PublisherServiceConfig struct {
	// The public facing multiaddr of the publisher
	PublicMaddr multiaddr.Multiaddr
	// The address put into announce messages to tell indexers where to fetch advertisements from
	AnnounceMaddr multiaddr.Multiaddr
	// Address to tell indexers where to fetch blobs from
	BlobMaddr multiaddr.Multiaddr
	// Indexer URLs to send direct HTTP announcements to
	AnnounceURLs []url.URL
}

type PublisherStorageConfig

type PublisherStorageConfig struct {
	Dir string
}

PublisherStorageConfig contains publisher-specific storage paths

type ReceiptStorageConfig

type ReceiptStorageConfig struct {
	Dir string
}

ReceiptStorageConfig contains receipt-specific storage paths

type ReplicatorStorageConfig

type ReplicatorStorageConfig struct {
	DBPath string
}

ReplicatorStorageConfig contains replicator-specific storage paths

type SchedulerConfig added in v0.0.13

type SchedulerConfig struct {
	DBPath string
}

type ServerConfig

type ServerConfig struct {
	Host      string
	Port      uint
	PublicURL url.URL
}

ServerConfig contains HTTP server settings

type StashStoreConfig added in v0.0.13

type StashStoreConfig struct {
	Dir string
}

type StorageConfig

type StorageConfig struct {
	// Root directories
	DataDir string
	TempDir string

	// Service-specific storage subdirectories
	Aggregator       AggregatorStorageConfig
	Blobs            BlobStorageConfig
	Claims           ClaimStorageConfig
	Publisher        PublisherStorageConfig
	Receipts         ReceiptStorageConfig
	Allocations      AllocationStorageConfig
	Replicator       ReplicatorStorageConfig
	KeyStore         KeyStoreConfig
	StashStore       StashStoreConfig
	SchedulerStorage SchedulerConfig
	PDPStore         PDPStoreConfig
}

StorageConfig contains all storage paths and directories

type UCANServiceConfig added in v0.0.13

type UCANServiceConfig struct {
	Services   ExternalServicesConfig
	ProofSetID uint64
}

type UploadServiceConfig added in v0.0.13

type UploadServiceConfig struct {
	Connection client.Connection
}

Jump to

Keyboard shortcuts

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