download

package
v1.129.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 5 Imported by: 3 modules, 1 package

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

This section is empty.

Types

type CMDGenerator added in v1.39.0

type CMDGenerator struct {
	Producer   KafkaProducer
	Marshaller GenerateDownloadsEvent
}

Generator kicks off a full dataset version download task

func (*CMDGenerator) Generate added in v1.39.0

func (gen *CMDGenerator) Generate(ctx context.Context, datasetID, instanceID, edition, version string) error

Generate the full file download files for the specified dataset/edition/version

type CantabularGenerator added in v1.39.0

type CantabularGenerator struct {
	Producer   KafkaProducer
	Marshaller GenerateDownloadsEvent
}

Generator kicks off a full dataset version download task

func (*CantabularGenerator) Generate added in v1.39.0

func (gen *CantabularGenerator) Generate(ctx context.Context, datasetID, instanceID, edition, version string) error

Generate the full file download files for the specified dataset/edition/version

type CantabularGeneratorDownloads added in v1.42.0

type CantabularGeneratorDownloads struct {
	InstanceID     string   `avro:"instance_id"`
	DatasetID      string   `avro:"dataset_id"`
	Edition        string   `avro:"edition"`
	Version        string   `avro:"version"`
	FilterOutputID string   `avro:"filter_output_id"`
	Dimensions     []string `avro:"dimensions"`
}

type GenerateDownloads added in v1.42.0

type GenerateDownloads struct {
	FilterOutputID string `avro:"filter_output_id"`
	InstanceID     string `avro:"instance_id"`
	DatasetID      string `avro:"dataset_id"`
	Edition        string `avro:"edition"`
	Version        string `avro:"version"`
}

type GenerateDownloadsEvent

type GenerateDownloadsEvent interface {
	Marshal(s interface{}) ([]byte, error)
}

GenerateDownloadsEvent marshal the event into avro format

type GeneratorError

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

GeneratorError is a wrapper for errors returned from the Generator

func (GeneratorError) Error

func (genErr GeneratorError) Error() string

Error return details about the error

type KafkaProducer

type KafkaProducer interface {
	Output() chan kafka.BytesMessage
}

KafkaProducer sends an outbound kafka message

Jump to

Keyboard shortcuts

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