model

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DealConfig

type DealConfig struct {
	VerifiedDeal     bool
	FastRetrieval    bool
	SkipConfirmation bool
	MinerPrice       decimal.Decimal
	StartEpoch       int
	MinerFid         string
	SenderWallet     string
}

func GetDealConfig

func GetDealConfig(verifiedDeal, fastRetrieval, skipConfirmation bool, minerPrice decimal.Decimal, startEpoch int, minerFid, senderWallet string) *DealConfig

type FileDesc

type FileDesc struct {
	Uuid           *string
	SourceFileName string
	SourceFilePath string
	SourceFileMd5  string
	SourceFileSize int64
	CarFileName    string
	CarFilePath    string
	CarFileMd5     string
	CarFileUrl     *string
	CarFileSize    int64
	//CarFileAddress string
	DealCid    *string
	DataCid    string
	PieceCid   string
	MinerFid   *string
	StartEpoch int
}

type Miner

type Miner struct {
	Id       int    `json:"id"`
	MinerFid string `json:"miner_fid"`
}

type OfflineDeal

type OfflineDeal struct {
	Id                   int     `json:"id"`
	DealCid              string  `json:"deal_cid"`
	FilePath             string  `json:"file_path"`
	FileName             string  `json:"file_name"`
	FileSourceUrl        *string `json:"file_source_url"`
	Md5Origin            string  `json:"md5_origin"`
	CreatedAt            string  `json:"created_at"`
	UpdatedAt            string  `json:"updated_at"`
	Status               string  `json:"status"`
	MinerId              int     `json:"miner_id"`
	Md5Local             string  `json:"md5_local"`
	StartEpoch           *int    `json:"start_epoch"`
	FileDownloadedStatus string  `json:"file_downloaded_status"`
	UserId               int     `json:"user_id"`
	Note                 string  `json:"note"`
	TaskId               int     `json:"task_id"`
	IsPublic             int     `json:"is_public"`
	FileSize             *string `json:"file_size"`
	PayloadCid           *string `json:"payload_cid"`
	PieceCid             *string `json:"piece_cid"`
	DownloadedAt         string  `json:"downloaded_at"`
}

type Task

type Task struct {
	Id                int              `json:"id"`
	TaskName          string           `json:"task_name"`
	Description       string           `json:"description"`
	TaskFileName      string           `json:"task_file_name"`
	CreatedOn         string           `json:"created_on"`
	UserId            int              `json:"user_id"`
	Status            string           `json:"status"`
	Tags              string           `json:"tags"`
	MinerFid          *string          `json:"miner_id"`
	Type              *string          `json:"type"`
	IsPublic          *int             `json:"is_public"`
	MinPrice          *decimal.Decimal `json:"min_price"`
	MaxPrice          *decimal.Decimal `json:"max_price"`
	ExpireDays        *int             `json:"expire_days"`
	Uuid              *string          `json:"uuid"`
	CuratedDataset    string           `json:"curated_dataset"`
	UpdatedOn         string           `json:"updated_on"`
	BidMode           *int             `json:"bid_mode"`
	FastRetrieval     *int             `json:"fast_retrieval"`
	FastRetrievalBool bool
}

Jump to

Keyboard shortcuts

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