Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterEchoRoutes(e *echo.Echo, p *PDP)
- type AddRootRequest
- type AddRootSubrootEntry
- type AddRootToProofSetRequest
- type AddRootsPayload
- type CreateProofSetRequest
- type CreateProofSetResponse
- type FindPieceResponse
- type GetProofSetCreationStatusResponse
- type GetProofSetResponse
- type PDP
- type PieceHash
- type PieceUploadResponse
- type PreparePieceRequest
- type PreparePieceResponse
- type RootEntry
- type Server
Constants ¶
View Source
const ( PDPRoutePath = "/pdp" PRoofSetRoutPath = "/proof-sets" PiecePrefix = "/piece" )
Variables ¶
View Source
var PieceSizeLimit = abi.PaddedPieceSize(proof.MaxMemtreeSize).Unpadded()
Functions ¶
func RegisterEchoRoutes ¶
Types ¶
type AddRootRequest ¶
type AddRootRequest struct {
RootCid string `json:"rootCid"`
Subroots []AddRootSubrootEntry `json:"subroots"`
}
type AddRootSubrootEntry ¶
type AddRootSubrootEntry struct {
SubrootCid string `json:"subrootCid"`
}
type AddRootToProofSetRequest ¶
type AddRootToProofSetRequest []AddRootRequest
type AddRootsPayload ¶
type AddRootsPayload struct {
Roots []AddRootRequest `json:"roots"`
ExtraData *string `json:"extraData,omitempty"`
}
type CreateProofSetRequest ¶
type CreateProofSetRequest struct {
RecordKeeper string `json:"recordKeeper"`
}
type CreateProofSetResponse ¶
type CreateProofSetResponse struct {
TxHash string `json:"txHash"`
Location string `json:"location"`
}
CreateProofSetResponse is the JSON output for the CreateProofSet endpoint.
type FindPieceResponse ¶
type FindPieceResponse struct {
PieceCID string `json:"piece_cid"`
}
type GetProofSetResponse ¶
type PDP ¶
type PDP struct {
Service *service.PDPService
}
type PieceUploadResponse ¶
type PreparePieceRequest ¶
type PreparePieceResponse ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.