Versions in this module Expand all Collapse all v1 v1.5.0 Jan 11, 2021 Changes in this version + var HostRepairResponseCmd = &cmds.Command + var ShardErrChanMap = cmap.New() + var StorageDcRepairRouterCmd = &cmds.Command + var StorageUploadCmd = &cmds.Command + var StorageUploadInitCmd = &cmds.Command + var StorageUploadRecvContractCmd = &cmds.Command + var StorageUploadRepairCmd = &cmds.Command + var StorageUploadStatusCmd = &cmds.Command + func NewContractRequest(rss *sessions.RenterSession, signedContracts []*escrowpb.SignedEscrowContract, ...) (*escrowpb.EscrowContractRequest, error) + func NewFileStatus(contracts []*guardpb.Contract, configuration *config.Config, renterId string, ...) (*guardpb.FileStoreStatus, error) + func RenterSignGuardContract(rss *sessions.RenterSession, params *ContractParams, offlineSigning bool, ...) ([]byte, error) + func ResumeWaitUploadOnSigning(rss *sessions.RenterSession) error + func Submit(rss *sessions.RenterSession, fileSize int64, offlineSigning bool) error + func UploadShard(rss *sessions.RenterSession, hp helper.IHostsProvider, price int64, ...) + type ContractParams struct + ContractId string + FileHash string + HostPid string + Price int64 + RenterPid string + ShardHash string + ShardIndex int32 + ShardSize int64 + StartTime time.Time + StorageLength int64 + TotalPay int64 + type Count struct + func (h *Count) Count(ds datastore.Datastore, peerId string, status guardpb.Contract_ContractState) (int, error) + type HostManager struct + func NewHostManager(cfg *config.Config) *HostManager + func (h *HostManager) AcceptContract(ds datastore.Datastore, peerId string, shardSize int64) (bool, error) + type ICount interface + Count func(ds datastore.Datastore, peerId string, status guardpb.Contract_ContractState) (int, error) + type RepairContractParams struct + DownloadRewardAmount int64 + FileHash string + FileSize int64 + LostShardHashes []string + RepairPid string + RepairRewardAmount int64 + type RepairParams struct + RenterEnd time.Time + RenterStart time.Time + type Res struct + ID string + type ShardStatus struct + AdditionalInfo string + ContractID string + Host string + Message string + Price int64 + Status string + type StatusRes struct + AdditionalInfo string + FileHash string + Message string + Shards map[string]*ShardStatus + Status string