Version: dev

data_source_location

Stable type · Document types

Tier: stable · Kind: type · Topic: Document types

JuliaTypeScriptPythonRustGo
DataSourceLocationnot exportedDataSourceLocationDataSourceLocationDataSourceLocation

Julia

struct DataSourceLocation
DataSourceLocation(url_template::String; mirrors)
DataSourceLocation

File discovery configuration for a data source (the schema’s DataSource.source object). Describes how to locate data files at runtime via a URL template with {date:<strftime>}, {var}, {sector}, {species}, and custom substitutions. Optional mirrors list gives ordered fallback templates.

Source

TypeScript

TypeScript does not export this type.

Python

class DataSourceLocation
DataSourceLocation(url_template: str, mirrors: list[str] = list())

File discovery configuration for a data source.

Source

Rust

pub struct DataSourceLocation {
    pub url_template: String,
    pub mirrors: Option<Vec<String>>,
}

File discovery configuration. Describes how to locate data files at runtime via URL templates with date/variable substitutions.

Source · Rust docs

Go

type DataSourceLocation struct {
	URLTemplate string   `json:"url_template"`
	Mirrors     []string `json:"mirrors,omitempty"`
}

DataSourceLocation describes file discovery for a data source. URL templates use Jinja-style substitutions for dates, variable names, and similar (esm-spec 8.2).

Source · Go docs