download

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 5 Imported by: 0

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