Documentation ¶
Index ¶
- Variables
- func CalculateDagStats(ctx context.Context, coreapi coreiface.CoreAPI, k cid.Cid, recursive bool, ...) error
- func WithDagStat(ctx context.Context, v *DagStats) context.Context
- type CidCount
- type DagStats
- type ExtendedHandlers
- func (h *ExtendedHandlers) DagImport() gohttp.HandlerFunc
- func (h *ExtendedHandlers) NameBroadcast() gohttp.HandlerFunc
- func (h *ExtendedHandlers) PinAdd() gohttp.HandlerFunc
- func (h *ExtendedHandlers) PinChildrenUpdate() gohttp.HandlerFunc
- func (h *ExtendedHandlers) PinList() gohttp.HandlerFunc
- func (h *ExtendedHandlers) PinRm() gohttp.HandlerFunc
- func (h *ExtendedHandlers) PinnedCount() gohttp.HandlerFunc
- func (h *ExtendedHandlers) Status() gohttp.HandlerFunc
- type NameBroadcastResult
- type PinAddResult
- type PinChildrenUpdate
- type PinChildrenUpdateRequest
- type PinChildrenUpdateResult
- type PinListResult
- type PinRmResult
- type PinnedCountResult
- type StatusResult
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CalculateDagStats ¶
Types ¶
type DagStats ¶
type DagStats struct { TotalCount *atomic.Int64 DeduplicatedSize *atomic.Int64 DeduplicatedNumBlocks *atomic.Int64 TotalSize *atomic.Int64 TotalNumBlocks *atomic.Int64 }
func NewDagStats ¶
func NewDagStats() *DagStats
type ExtendedHandlers ¶
type ExtendedHandlers struct {
// contains filtered or unexported fields
}
func (*ExtendedHandlers) DagImport ¶
func (h *ExtendedHandlers) DagImport() gohttp.HandlerFunc
func (*ExtendedHandlers) NameBroadcast ¶
func (h *ExtendedHandlers) NameBroadcast() gohttp.HandlerFunc
func (*ExtendedHandlers) PinAdd ¶
func (h *ExtendedHandlers) PinAdd() gohttp.HandlerFunc
func (*ExtendedHandlers) PinChildrenUpdate ¶
func (h *ExtendedHandlers) PinChildrenUpdate() gohttp.HandlerFunc
PinChildrenUpdate updates a root node's children's reference count in pinner index. The API requires the root node is already pinned recursively. All updating CIDs must be current child of the root node. For decrementing CID, its current count must be positive, otherwise, the all updates abort.
func (*ExtendedHandlers) PinList ¶
func (h *ExtendedHandlers) PinList() gohttp.HandlerFunc
func (*ExtendedHandlers) PinRm ¶
func (h *ExtendedHandlers) PinRm() gohttp.HandlerFunc
func (*ExtendedHandlers) PinnedCount ¶
func (h *ExtendedHandlers) PinnedCount() gohttp.HandlerFunc
func (*ExtendedHandlers) Status ¶
func (h *ExtendedHandlers) Status() gohttp.HandlerFunc
type NameBroadcastResult ¶
type NameBroadcastResult struct {
Message string `json:"message"`
}
type PinAddResult ¶
type PinAddResult struct { Success bool `json:"success"` InProgress bool `json:"in_progress"` ProcessedNumBlocks int `json:"processed_num_blocks"` DeduplicatedSize int64 `json:"duplicated_size"` DeduplicatedNumBlocks int64 `json:"duplicated_num_blocks"` TotalSize int64 `json:"total_size"` TotalNumBlocks int64 `json:"total_num_blocks"` Message string `json:"message"` }
type PinChildrenUpdate ¶
type PinChildrenUpdateRequest ¶
type PinChildrenUpdateRequest struct { Root string `json:"root"` Incs []*PinChildrenUpdate `json:"incs"` Decs []*PinChildrenUpdate `json:"decs"` }
type PinChildrenUpdateResult ¶
type PinListResult ¶
type PinRmResult ¶
type PinnedCountResult ¶
type StatusResult ¶
Click to show internal directories.
Click to hide internal directories.