Versions in this module Expand all Collapse all v1 v1.0.2 Apr 20, 2023 Changes in this version + const BufSize + type CarHeader struct + Roots []cid.Cid + Version uint64 + type CarParam struct + IncludeCommp bool + OutDir string + SourceInput string + SplitSizeInput string + type CommpResult struct type Content + Replication int + type Input []utils.Finfo + type PieceCommitment struct + PaddedPieceSize uint64 + PieceCID string + UnpaddedPieceSize uint64 + type Result struct + CidMap map[string]utils.CidMapValue + Miner string + PayloadCid string + PieceCommitment PieceCommitment + Size uint64 + func ChunkFileToCar(carParam CarParam) (Result, error) v1.0.1 Apr 14, 2023 v1.0.0 Apr 8, 2023 Changes in this version + func BootstrapEstuaryPeers() []peer.AddrInfo + func ConfigureModels(db *gorm.DB) + func GetHostname() string + func GetPublicIP() (string, error) + func OpenDatabase() (*gorm.DB, error) + func ScanHostComputeResources(ln *LightNode, repo string) error + type Configuration struct + APINodeAddress string + type Content struct + Cid string + CreatedAt time.Time + DeltaContentId int64 + DeltaNodeUrl string + ID int64 + LastMessage string + Miner string + Name string + RequestingApiKey string + Size int64 + Status string + UpdatedAt time.Time + type ContentCarSplit struct + ContentID int64 + ID int64 + type ContentDeal struct + ContentId int64 + CreatedAt time.Time + DealProtocolVersion string + DealUUID string + DeletedAt time.Time + DtChan string + Failed bool + FailedAt time.Time + ID int64 + Miner string + MinerVersion string + OnChainAt time.Time + PropCid string + SealedAt time.Time + Slashed bool + Status string + TransferFinished time.Time + TransferStarted time.Time + UpdatedAt time.Time + UserID int + Verified bool + type ContentReplication struct + CreatedAt time.Time + ID int64 + PrimaryContentID int64 + PrimaryDeltaContentID int64 + ReplicaContentID int64 + ReplicaDeltaContentID int64 + UpdatedAt time.Time + type FileSplitter struct + func NewFileSplitter(param SplitterParam) FileSplitter + func (c FileSplitter) SplitFile(filePath string) ([][]byte, error) + func (c FileSplitter) SplitFileFromReader(fileFromReader io.Reader) ([][]byte, error) + func (c FileSplitter) SplitFileFromReaderIntoBlockstore(fileFromReader io.Reader) ([]SplitChunk, error) + type GatewayHandler struct + func NewGatewayHandler(node *whypfs.Node) (*GatewayHandler, error) + type LightNode struct + Api url.URL + Config *Configuration + DB *gorm.DB + Gw *GatewayHandler + Node *whypfs.Node + func NewEdgeNode(ctx context.Context, repo string) (*LightNode, error) + func (ln *LightNode) ConnectToDelegates(ctx context.Context, delegates []string) error + func (ln *LightNode) GetLocalhostOrigins() []string + type LocalWallet struct + type SplitChunk struct + Chunk []byte + Cid string + Index int + Size int + type SplitReassembler struct + func NewSplitReassembler(param SplitReassemblerParam) SplitReassembler + func (c SplitReassembler) ReassembleFileFromCid(cidStr string) (*os.File, error) + type SplitReassemblerParam struct + LightNode *LightNode + type SplitterParam struct + ChuckSize int64 + LightNode *LightNode + type UploadSplits struct + Cid string + ContentId int64 + Index int