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" // ErrStringWouldExceedRunningBytesLimit is the error message bidbot responds to wins // message if proceeding with the bid would exceed the running bytes // limit. ErrStringWouldExceedRunningBytesLimit = "would exceed running bytes limit" )
View Source
const Topic string = "/textile/auction/0.0.1"
Topic is used by auctioneers to publish and by miners to subscribe to deal auction.
Variables ¶
View Source
var BidbotEventsTopic string = path.Join(Topic, "bidbot_events")
BidbotEventsTopic is used by bidbots to notify auctioneers various events, mainly around the lifecycle of bids.
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 auctioneers 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.