Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MinDealDuration is the minimum allowed deal duration in epochs requested of miners. MinDealDuration = epochsPerDay * 365 / 2 // ~6 months // MaxDealDuration is the maximum allowed deal duration in epochs requested of miners. MaxDealDuration = epochsPerDay * 510 // As far as we know, is the safest max duration that all miners accept. // HTTPCarHeaderOnly is a HTTP header indicating that the bidbot wants // only the CAR file header, as a hint to the HTTP server. HTTPCarHeaderOnly = "X-Bidbot-Car-Header-Only" )
View Source
const Topic string = "/textile/auction/0.0.1"
Topic is used by brokers to publish and by miners to subscribe to deal auction.
Variables ¶
This section is empty.
Functions ¶
func BidsTopic ¶
BidsTopic is used by miners to submit deal auction bids. "/textile/auction/0.0.1/<auction_id>/bids".
func ProposalsTopic ¶
ProposalsTopic is used by brokers to notify a bidbot of the proposal cid.Cid for an accepted deal auction. "/textile/auction/0.0.1/<peer_id>/proposals".
Types ¶
type CARIPFS ¶
type CARIPFS struct { Cid cid.Cid Multiaddrs []multiaddr.Multiaddr }
CARIPFS contains details of a CAR file Cid stored in an HTTP endpoint.
Click to show internal directories.
Click to hide internal directories.