sample

package
v0.0.0-...-0b37329 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwesomeIpfsDatasets

type AwesomeIpfsDatasets struct {
	// contains filtered or unexported fields
}

func NewAwesomeIpfsDatasets

func NewAwesomeIpfsDatasets(o ...Option) (*AwesomeIpfsDatasets, error)

func (*AwesomeIpfsDatasets) Sample

func (s *AwesomeIpfsDatasets) Sample(ctx context.Context) (*Set, error)

type InternetArchiveTopCidsSampler

type InternetArchiveTopCidsSampler struct {
	// contains filtered or unexported fields
}

func NewInternetArchiveTopCidsSampler

func NewInternetArchiveTopCidsSampler(o ...Option) (*InternetArchiveTopCidsSampler, error)

func (*InternetArchiveTopCidsSampler) Sample

type Option

type Option func(*options) error

func WithName

func WithName(name string) Option

type Sampler

type Sampler interface {
	Sample(context.Context) (*Set, error)
}

type SaturnTopCidsSampler

type SaturnTopCidsSampler struct {
	// contains filtered or unexported fields
}

func NewSaturnTopCidsSampler

func NewSaturnTopCidsSampler(o ...Option) (*SaturnTopCidsSampler, error)

func (*SaturnTopCidsSampler) Sample

func (s *SaturnTopCidsSampler) Sample(ctx context.Context) (*Set, error)

type Set

type Set struct {
	Name string
	Cids []cid.Cid
}

Jump to

Keyboard shortcuts

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