Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListHandler ¶
ListHandler godoc @Summary List all deals @Description List all deals @Tags Deal @Accept json @Produce json @Param request body ListDealRequest true "ListDealRequest" @Success 200 {array} model.Deal @Failure 400 {object} handler.HTTPError @Failure 500 {object} handler.HTTPError @Router /deal/list [post]
func SendManualHandler ¶
SendManualHandler godoc @Summary Send a manual deal proposal @Description Send a manual deal proposal @Tags Deal @Accept json @Produce json @Param proposal body Proposal true "Proposal" @Success 200 {string} string @Failure 400 {object} handler.HTTPError @Failure 500 {object} handler.HTTPError @Router /deal/send_manual [post]
Types ¶
type ListDealRequest ¶
type Proposal ¶
type Proposal struct { HTTPHeaders []string `json:"httpHeaders"` URLTemplate string `json:"urlTemplate"` Price float64 `json:"price"` RootCID string `json:"rootCID"` Verified bool `json:"verified"` IPNI bool `json:"ipni"` KeepUnsealed bool `json:"keepUnsealed"` StartDelayDays float64 `json:"startDelayDays"` DurationDays float64 `json:"durationDays"` ClientAddress string `json:"clientAddress"` ProviderID string `json:"providerID"` PieceCID string `json:"pieceCID"` PieceSize string `json:"pieceSize"` FileSize uint64 `json:"fileSize"` LotusAPI string `swaggerignore:"true"` LotusToken string `swaggerignore:"true"` }
Click to show internal directories.
Click to hide internal directories.