Documentation ¶
Index ¶
- Constants
- func CIDFromHash(hash []byte, cidType uint64) (cid.Cid, error)
- func DetectPartialFile(ctx context.Context, block blocks.Block) (bool, error)
- func IsPartialFile(info *NodeInfo) bool
- func NewIPFSHash(c cid.Cid) core.StorageHash
- func PinStatusToRequestStatus(status db.PinningStatus) models.RequestStatusType
- func RequestStatusToPinStatus(statusType models.RequestStatusType) db.PinningStatus
- type NodeInfo
- type NodeInfoType
Constants ¶
View Source
const ProtocolName = "ipfs"
Variables ¶
This section is empty.
Functions ¶
func CIDFromHash ¶
func DetectPartialFile ¶
func IsPartialFile ¶
func NewIPFSHash ¶
func NewIPFSHash(c cid.Cid) core.StorageHash
func PinStatusToRequestStatus ¶
func PinStatusToRequestStatus(status db.PinningStatus) models.RequestStatusType
func RequestStatusToPinStatus ¶
func RequestStatusToPinStatus(statusType models.RequestStatusType) db.PinningStatus
Types ¶
type NodeInfo ¶
type NodeInfoType ¶
type NodeInfoType string
const ( NodeTypeRaw NodeInfoType = "raw" NodeTypeProtobuf NodeInfoType = "protobuf" NodeTypeUnknown NodeInfoType = "unknown" )
Click to show internal directories.
Click to hide internal directories.