model

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 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 Bid added in v0.2.135

type Bid struct {
	Id           int              `json:"id"`
	Price        *decimal.Decimal `json:"price"`
	MinPieceSize *string          `json:"min_price_size"`
	Status       string           `json:"status"`
	CreatedOn    string           `json:"created_on"`
	WonOn        string           `json:"won_on"`
	ExpireDays   *int             `json:"expire_days"`
	MinerFid     string           `json:"miner_fid"`
}

type CarFile added in v0.2.66

type CarFile struct {
	Id         int     `json:"id"`
	TaskId     int     `json:"task_id"`
	OriginName string  `json:"origin_name"`
	StartEpoch int64   `json:"start_epoch"`
	FileUrl    string  `json:"file_url"`
	FileMd5    *string `json:"file_md5"`
	FileSize   int64   `json:"file_size"`
	PayloadCid string  `json:"payload_cid"`
	PieceCid   string  `json:"piece_cid"`
	PinStatus  *string `json:"pin_status"`
	CreatedAt  int64   `json:"created_at"`
	UpdatedAt  int64   `json:"updated_at"`
}

type DealConfig

type DealConfig struct {
	SkipConfirmation bool
	VerifiedDeal     bool
	FastRetrieval    bool
	StartEpoch       int64
	MinerFid         string
	MaxPrice         decimal.Decimal
	SenderWallet     string
	Duration         int
	TransferType     string
	PayloadCid       string
	PieceCid         string
	FileSize         int64
	ClientRepo       string
}

type DealInfo added in v0.2.64

type DealInfo struct {
	DealId        int
	DealCid       string
	MinerFid      string
	StartEpoch    int
	Cost          string
	StorageStatus string `json:"StorageStatus,omitempty"`
	ClientAddr    string
	AllocationID  uint64
	Type          int
}

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
	PayloadCid     string
	PieceCid       string
	StartEpoch     *int64
	SourceId       *int
	Deals          []*DealInfo
}

type Miner

type Miner struct {
	Id                  int    `json:"id"`
	MinerFid            string `json:"miner_fid"`
	BidMode             int    `json:"bid_mode"`
	ExpectedSealingTime int    `json:"expected_sealing_time"`
	StartEpoch          int    `json:"start_epoch"`
	AutoBidDealPerDay   int    `toml:"auto_bid_deal_per_day"`
	MarketVersion       string `json:"market_version"`
}

type OfflineDeal

type OfflineDeal struct {
	Id       int    `json:"id"`
	DealCid  string `json:"deal_cid"`
	FilePath string `json:"file_path"` //store file downloaded from server locally
	//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"`
	//Cost                 string           `json:"cost"`
	CarFileId     int              `json:"car_file_id"`
	CarFileUrl    string           `json:"car_file_url"`
	CarFileSize   int64            `json:"car_file_size"`
	MinerFid      string           `json:"miner_fid"`
	TaskName      *string          `json:"task_name"`
	TaskUuid      *string          `json:"task_uuid"`
	TaskType      *string          `json:"task_type"`
	FastRetrieval *int             `json:"fast_retrieval"`
	MaxPrice      *decimal.Decimal `json:"max_price"`
	Duration      *int             `json:"duration"`
	SourceId      *int             `json:"source_id"`
	ChainDealId   int64            `json:"chain_deal_id"`
	ClientAddr    string           `json:"client_addr"`
	AllocationID  uint64           `json:"allocation_id"`
	Type          int              `json:"type"`
}

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_fid"`
	Type                 string           `json:"type"`
	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"`
	SourceId             int              `json:"source_id"`
	Duration             int              `json:"duration"`
	MaxAutoBidCopyNumber int              `json:"max_auto_bid_copy_number"`
	ClientAddr           string           `json:"client_addr"`
	DealType             int              `json:"deal_type"`
}

Jump to

Keyboard shortcuts

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