Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lassie ¶
type Lassie struct {
// contains filtered or unexported fields
}
func NewLassieWithConfig ¶
func NewLassieWithConfig(ctx context.Context, cfg *LassieConfig) (*Lassie, error)
func (*Lassie) Fetch ¶
func (l *Lassie) Fetch(ctx context.Context, rootCid cid.Cid, linkSystem linking.LinkSystem) (types.RetrievalID, *types.RetrievalStats, error)
func (*Lassie) RegisterSubscriber ¶
func (l *Lassie) RegisterSubscriber(subscriber types.RetrievalEventSubscriber) func()
type LassieConfig ¶
type LassieConfig struct { Finder retriever.CandidateFinder Timeout time.Duration }
type LassieOption ¶
type LassieOption func(cfg *LassieConfig)
func WithFinder ¶
func WithFinder(finder retriever.CandidateFinder) LassieOption
func WithTimeout ¶
func WithTimeout(timeout time.Duration) LassieOption
Click to show internal directories.
Click to hide internal directories.