download

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateDownloadsEvent

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

GenerateDownloadsEvent marshal the event into avro format

type Generator

type Generator struct {
	Producer   KafkaProducer
	Marshaller GenerateDownloadsEvent
}

Generator kicks off a full dataset version download task

func (*Generator) Generate

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

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

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 []byte
}

KafkaProducer sends an outbound kafka message

Jump to

Keyboard shortcuts

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