Documentation
¶
Index ¶
- type AddPieceRequest
- type AddPieceResponse
- type AddRootsRequest
- type AddRootsResponse
- type CreateProofSetRequest
- type CreateProofSetResponse
- type FoundPieceResponse
- type GetProofSetResponse
- type ListProofSetsResponse
- type PieceHash
- type ProofSetEntry
- type ProofSetStatusResponse
- type RemoveRootResponse
- type Root
- type RootEntry
- type SubrootEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPieceRequest ¶
type AddPieceResponse ¶
type AddRootsRequest ¶
type AddRootsRequest struct {
Roots []Root `json:"roots"`
ExtraData *string `json:"extraData,omitempty"`
}
AddRoots types
type AddRootsResponse ¶
type AddRootsResponse struct {
TxHash string `json:"txHash"`
}
AddRoots types
type CreateProofSetRequest ¶
type CreateProofSetRequest struct {
RecordKeeper string `json:"recordKeeper"`
}
CreateProofSet types
type CreateProofSetResponse ¶
type CreateProofSetResponse struct {
TxHash string `json:"txHash"`
Location string `json:"location"`
}
CreateProofSet types
type FoundPieceResponse ¶
type FoundPieceResponse struct {
PieceCID string `json:"piece_cid"`
}
type GetProofSetResponse ¶
type GetProofSetResponse struct {
ID uint64 `json:"id"`
NextChallengeEpoch *int64 `json:"nextChallengeEpoch"`
Roots []RootEntry `json:"roots"`
// piri only - optinal
PreviousChallengeEpoch *int64 `json:"previousChallengeEpoch,omitempty"`
ProvingPeriod *int64 `json:"provingPeriod,omitempty"`
ChallengeWindow *int64 `json:"challengeWindow,omitempty"`
}
GetProofSet types
type ListProofSetsResponse ¶
type ListProofSetsResponse []ProofSetEntry
type ProofSetEntry ¶
type ProofSetEntry struct {
ID uint64 `json:"id"`
Initialized bool `json:"initialized"`
Roots []RootEntry `json:"roots"`
NextChallengeEpoch *int64 `json:"nextChallengeEpoch,omitempty"`
PreviousChallengeEpoch *int64 `json:"previousChallengeEpoch,omitempty"`
ProvingPeriod *int64 `json:"provingPeriod,omitempty"`
ChallengeWindow *int64 `json:"challengeWindow,omitempty"`
}
type ProofSetStatusResponse ¶
type ProofSetStatusResponse struct {
CreateMessageHash string `json:"createMessageHash"`
ProofsetCreated bool `json:"proofsetCreated"`
Service string `json:"service"`
TxStatus string `json:"txStatus"`
OK *bool `json:"ok"`
ProofSetId *uint64 `json:"proofSetId,omitempty"`
}
GetProofSetStatus types
type RemoveRootResponse ¶
type RemoveRootResponse struct {
TxHash string `json:"txHash"`
}
type Root ¶
type Root struct {
RootCID string `json:"rootCid"`
Subroots []SubrootEntry `json:"subroots"`
}
AddRoots types
type RootEntry ¶
type RootEntry struct {
RootID uint64 `json:"rootId"`
RootCID string `json:"rootCid"`
SubrootCID string `json:"subrootCid"`
SubrootOffset int64 `json:"subrootOffset"`
}
GetProofSet types
type SubrootEntry ¶
type SubrootEntry struct {
SubrootCID string `json:"subrootCid"`
}
AddRoots types
Click to show internal directories.
Click to hide internal directories.