Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnSerializePeers ¶
func UnSerializePeers(prs []AddrInfoString) []*peer.AddrInfo
Types ¶
type AddrInfoString ¶
func SerializePeers ¶
func SerializePeers(peers []*peer.AddrInfo) []AddrInfoString
type PinningOperation ¶
type PinningOperation struct {
Obj cid.Cid
Name string
Peers []AddrInfoString
Meta string
Status types.PinningStatus
UserId uint
ContId uint
Replace uint
LastUpdate time.Time
Started time.Time
NumFetched int
SizeFetched int64
FetchErr error
EndTime time.Time
Location string
SkipLimiter bool
MakeDeal bool
// contains filtered or unexported fields
}
TODO: some of these fields are overkill for the generalized pin manager thing, but are still in use by the primary estuary node. Should probably find a way to decouple this better
func (*PinningOperation) Complete ¶
func (po *PinningOperation) Complete()
func (*PinningOperation) Fail ¶
func (po *PinningOperation) Fail(err error)
func (*PinningOperation) SetStatus ¶
func (po *PinningOperation) SetStatus(st types.PinningStatus)
func (*PinningOperation) UpdateProgress ¶
func (po *PinningOperation) UpdateProgress(size int64)
Click to show internal directories.
Click to hide internal directories.