operation

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnSerializePeers

func UnSerializePeers(prs []AddrInfoString) []*peer.AddrInfo

Types

type AddrInfoString

type AddrInfoString struct {
	ID    string
	Addrs []string
}

func SerializePeers

func SerializePeers(peers []*peer.AddrInfo) []AddrInfoString

type PinningOperation

type PinningOperation struct {
	Obj   cid.Cid
	Name  string
	Peers []AddrInfoString
	Meta  string

	Status status.PinningStatus

	UserId  uint
	ContId  uint64
	Replace uint

	LastUpdate time.Time

	Started  time.Time
	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 status.PinningStatus)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL