lassie

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0, MIT Imports: 13 Imported by: 7

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 NewLassie

func NewLassie(ctx context.Context, opts ...LassieOption) (*Lassie, error)

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

Jump to

Keyboard shortcuts

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