fetch

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllTables

func AllTables() []string

AllTables returns the names of all available parquet tables.

func CoreTables

func CoreTables() []string

CoreTables returns the names of the core parquet tables.

func URLForTable

func URLForTable(name string) (string, bool)

URLForTable returns the download URL for a named table, and whether it exists.

Types

type Config

type Config struct {
	BaseURL  string
	DataDir  string
	Parallel int
}

Config holds configuration for a Fetcher.

type Fetcher

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

Fetcher downloads parquet tables from OSF into a local data directory.

func New

func New(cfg Config) *Fetcher

New creates a Fetcher with the given configuration.

func (*Fetcher) FetchTable

func (f *Fetcher) FetchTable(name, url string, force bool) error

FetchTable downloads a single parquet table by name, using an atomic rename (.tmp -> final) to avoid partial writes. If force is false and the final file already exists, it is skipped.

Jump to

Keyboard shortcuts

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